summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2015-10-05 12:43:47 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2015-10-05 12:43:47 +0000
commitbb9c116165644db4f61b6cca67af050dda91f838 (patch)
treebaf50df9d4150fa01ccf8fcb172940f422462a9a /compiler-rt/lib/asan
parentff9525817b8bc07b0a9c8f480bf35039f10074a2 (diff)
downloadbcm5719-llvm-bb9c116165644db4f61b6cca67af050dda91f838.tar.gz
bcm5719-llvm-bb9c116165644db4f61b6cca67af050dda91f838.zip
[asan][mips] Fix ABI incompatibility crash in pthread_create() following r248325.
Like i386, Mips needs a versioned interceptor but must select GLIBC_2.2. llvm-svn: 249307
Diffstat (limited to 'compiler-rt/lib/asan')
-rw-r--r--compiler-rt/lib/asan/asan_interceptors.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc
index 5a7a91b8f94..86879e424ae 100644
--- a/compiler-rt/lib/asan/asan_interceptors.cc
+++ b/compiler-rt/lib/asan/asan_interceptors.cc
@@ -29,6 +29,8 @@
#if defined(__i386) && SANITIZER_LINUX
#define ASAN_PTHREAD_CREATE_VERSION "GLIBC_2.1"
+#elif defined(__mips__) && SANITIZER_LINUX
+#define ASAN_PTHREAD_CREATE_VERSION "GLIBC_2.2"
#endif
namespace __asan {
OpenPOWER on IntegriCloud