diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-12-03 10:39:43 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-12-03 10:39:43 +0000 |
commit | b957f73b64e6a56246e4e5e7ac6e662202e62bf8 (patch) | |
tree | cecb570dc4cf673e21840a63f87c95c014c53b95 /lib/asan/asan_linux.cc | |
parent | a162aab2e3b4c4c6992c97bbbcb7fbf26cd881de (diff) |
[tsan] Use re-exec method to enable interceptors on older versions of OS X
In AddressSanitizer, we have the MaybeReexec method to detect when we're running without DYLD_INSERT_LIBRARIES (in which case interceptors don't work) and re-execute with the environment variable set. On OS X 10.11+, this is no longer necessary, but to have ThreadSanitizer supported on older versions of OS X, let's use the same method as well. This patch moves the implementation from `asan/` into `sanitizer_common/`.
Differential Revision: http://reviews.llvm.org/D15123
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index 804aef737..e26b40056 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -70,14 +70,6 @@ namespace __asan { void InitializePlatformInterceptors() {} -void DisableReexec() { - // No need to re-exec on Linux. -} - -void MaybeReexec() { - // No need to re-exec on Linux. -} - void *AsanDoesNotSupportStaticLinkage() { // This will fail to link with -static. return &_DYNAMIC; // defined in link.h |