forked from OSchip/llvm-project
tsan: fix linking when -ltsan is passed before -lpthread
libpthread is weird: /lib/x86_64-linux-gnu/libpthread.so.0:000000000000b9b0 T pthread_cond_init@@GLIBC_2.3.2 /lib/x86_64-linux-gnu/libpthread.so.0:000000000000c720 T pthread_cond_init@GLIBC_2.2.5 let's do it with @@ for now we can always introduce more macros parameters later llvm-svn: 189788
This commit is contained in:
parent
499d480be5
commit
e2391f66f9
|
@ -36,7 +36,7 @@ void *GetFuncAddrVer(const char *func_name, const char *ver);
|
|||
|
||||
#if !defined(__ANDROID__) // android does not have dlvsym
|
||||
#define INTERCEPT_FUNCTION_VER(func, funcver, symver) \
|
||||
__asm__(".symver "#funcver","#func"@"#symver); \
|
||||
__asm__(".symver "#funcver","#func"@@"#symver); \
|
||||
::__interception::real_##funcver = (funcver##_f)(unsigned long) \
|
||||
::__interception::GetFuncAddrVer(#func, #symver)
|
||||
#endif // !defined(__ANDROID__)
|
||||
|
|
Loading…
Reference in New Issue