[compiler-rt] r269947 - [sanitizer] Allow dlopen/dlclose interception to be disabled from cmake
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 09:05:52 PDT 2016
Author: fjricci
Date: Wed May 18 11:05:52 2016
New Revision: 269947
URL: http://llvm.org/viewvc/llvm-project?rev=269947&view=rev
Log:
[sanitizer] Allow dlopen/dlclose interception to be disabled from cmake
Summary:
dlopen and dlclose interception are broken when RUNPATH is used:
https://llvm.org/bugs/show_bug.cgi?id=27790
Reviewers: kutuzov.viktor.84, samsonov, dvyukov, eugenis, kcc
Subscribers: kcc, filcab, kubabrecka, compnerd, llvm-commits
Differential Revision: http://reviews.llvm.org/D20333
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h?rev=269947&r1=269946&r2=269947&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h Wed May 18 11:05:52 2016
@@ -280,8 +280,12 @@
#define SANITIZER_INTERCEPT_OBSTACK SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_FFLUSH SI_NOT_WINDOWS
#define SANITIZER_INTERCEPT_FCLOSE SI_NOT_WINDOWS
+
+#ifndef SANITIZER_INTERCEPT_DLOPEN_DLCLOSE
#define SANITIZER_INTERCEPT_DLOPEN_DLCLOSE \
SI_FREEBSD || SI_LINUX_NOT_ANDROID || SI_MAC
+#endif
+
#define SANITIZER_INTERCEPT_GETPASS SI_LINUX_NOT_ANDROID || SI_MAC
#define SANITIZER_INTERCEPT_TIMERFD SI_LINUX_NOT_ANDROID
More information about the llvm-commits
mailing list