[compiler-rt] ca9815f - [sanitizers] Define SANITIZER_INTERCEPTOR_HOOKS on FreeBSD
Alex Richardson via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 02:37:16 PST 2021
Author: Alex Richardson
Date: 2021-02-17T10:36:47Z
New Revision: ca9815fc247cc738f3ca7c8d5f482049371ca6e1
URL: https://github.com/llvm/llvm-project/commit/ca9815fc247cc738f3ca7c8d5f482049371ca6e1
DIFF: https://github.com/llvm/llvm-project/commit/ca9815fc247cc738f3ca7c8d5f482049371ca6e1.diff
LOG: [sanitizers] Define SANITIZER_INTERCEPTOR_HOOKS on FreeBSD
This fixes the weak_hooks.cpp test on FreeBSD. Since this feature appears
to be supported on almost all platforms, it might also make sense to turn
it into an opt-out list instead of being opt-in.
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D96255
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index b209583576ed..9cff0ac2acf6 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -458,7 +458,7 @@
#define SANITIZER_INTERCEPT_CTERMID_R (SI_MAC || SI_FREEBSD || SI_SOLARIS)
#define SANITIZER_INTERCEPTOR_HOOKS \
- (SI_LINUX || SI_MAC || SI_WINDOWS || SI_NETBSD || SI_SOLARIS)
+ (SI_LINUX || SI_MAC || SI_WINDOWS || SI_NETBSD || SI_NETBSD || SI_SOLARIS)
#define SANITIZER_INTERCEPT_RECV_RECVFROM SI_POSIX
#define SANITIZER_INTERCEPT_SEND_SENDTO SI_POSIX
#define SANITIZER_INTERCEPT_EVENTFD_READ_WRITE SI_LINUX
More information about the llvm-commits
mailing list