From 360c9118728940849d97fb00345bfd1d3f1784da Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 27 May 2014 14:14:03 +0000 Subject: [PATCH] [asan] Disable dlopen interceptor on Android. It can not work, as libdl is always first in the lookup order, even ahead of LD_PRELOAD-ed libraries. llvm-svn: 209657 --- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index b2aeb11..a51a00c 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -203,6 +203,6 @@ #define SANITIZER_INTERCEPT_OBSTACK SI_LINUX_NOT_ANDROID #define SANITIZER_INTERCEPT_FFLUSH SI_NOT_WINDOWS #define SANITIZER_INTERCEPT_FCLOSE SI_NOT_WINDOWS -#define SANITIZER_INTERCEPT_DLOPEN_DLCLOSE SI_NOT_WINDOWS +#define SANITIZER_INTERCEPT_DLOPEN_DLCLOSE SI_LINUX_NOT_ANDROID || SI_MAC #endif // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H -- 2.7.4