[PATCH] D20333: [sanitizer] Allow dlopen/dlclose interception to be disabled from cmake
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 10:34:30 PDT 2016
fjricci created this revision.
fjricci added reviewers: kutuzov.viktor.84, samsonov, dvyukov, eugenis.
fjricci added subscribers: llvm-commits, compnerd.
Herald added a subscriber: kubabrecka.
dlopen and dlclose interception are broken when RUNPATH is used:
https://llvm.org/bugs/show_bug.cgi?id=27790
http://reviews.llvm.org/D20333
Files:
lib/sanitizer_common/sanitizer_platform_interceptors.h
Index: lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ 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.57499.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160517/758acc3b/attachment.bin>
More information about the llvm-commits
mailing list