[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 llvm-svn: 269947
This commit is contained in:
parent
38af4d6347
commit
233a364bd8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue