[PATCH] D20333: [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:12:10 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL269947: [sanitizer] Allow dlopen/dlclose interception to be disabled from cmake (authored by fjricci).
Changed prior to commit:
http://reviews.llvm.org/D20333?vs=57499&id=57639#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20333
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20333.57639.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160518/75f6da56/attachment.bin>
More information about the llvm-commits
mailing list