aboutsummaryrefslogtreecommitdiffstats
path: root/community/tpm2-tss/dl_test_fix.patch
blob: e2820f1d2a0218003c11dbea7a66a8ad71fbc8aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/Makefile-test.am b/Makefile-test.am
index d7347148..ab2d1425 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -475,7 +475,7 @@ test_unit_tctildr_dl_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) \
         -UESYS_TCTI_DEFAULT_MODULE -UESYS_TCTI_DEFAUT_CONFIG
 test_unit_tctildr_dl_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) $(LIBADD_DL)
 test_unit_tctildr_dl_LDFLAGS = -Wl,--wrap=dlopen,--wrap=dlclose,--wrap=dlsym \
-    -Wl,--wrap=tcti_from_init,--wrap=tcti_from_info
+    -Wl,--wrap=tcti_from_init,--wrap=tcti_from_info,--wrap=__dlsym_time64
 test_unit_tctildr_dl_SOURCES = test/unit/tctildr-dl.c \
         src/tss2-tcti/tctildr-dl.c
 
diff --git a/test/unit/tctildr-dl.c b/test/unit/tctildr-dl.c
index 873a4531..4279baee 100644
--- a/test/unit/tctildr-dl.c
+++ b/test/unit/tctildr-dl.c
@@ -55,6 +55,12 @@ __wrap_dlsym(void *handle, const char *symbol)
     return mock_type(void *);
 }
 
+void *
+__wrap___dlsym_time64(void *handle, const char *symbol)
+{
+    return __wrap_dlsym(handle, symbol);
+}
+
 TSS2_TCTI_INFO *
 __wrap_Tss2_Tcti_Fake_Info(void)
 {