[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
This commit is contained in:
Daniel Sanders 2015-10-05 12:43:47 +00:00
parent ff9525817b
commit bb9c116165
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -3,7 +3,6 @@
// pthread_attr_init is not intercepted and binds to the new abi
// pthread_create is intercepted; dlsym always returns the oldest version.
// This results in a crash inside pthread_create in libc.
// UNSUPPORTED: mips
#include <pthread.h>
#include <stdlib.h>