forked from OSchip/llvm-project
[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:
parent
ff9525817b
commit
bb9c116165
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue