summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-09-03 10:16:44 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-09-03 10:16:44 +0000
commite2391f66f9b049e9cb88278dec8b640c68f164c1 (patch)
treea8853fbb1855ea994a5fe023fa649d99e73a78bc /compiler-rt/lib
parent499d480be5870b82504f4fb809d4f67624bbadd6 (diff)
downloadbcm5719-llvm-e2391f66f9b049e9cb88278dec8b640c68f164c1.tar.gz
bcm5719-llvm-e2391f66f9b049e9cb88278dec8b640c68f164c1.zip
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
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/interception/interception_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/interception/interception_linux.h b/compiler-rt/lib/interception/interception_linux.h
index 4c6f97a9d96..5e0ec2acbb0 100644
--- a/compiler-rt/lib/interception/interception_linux.h
+++ b/compiler-rt/lib/interception/interception_linux.h
@@ -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__)
OpenPOWER on IntegriCloud