[compiler-rt] r310246 - Add NetBSD support in asan_interceptors.h
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 03:57:58 PDT 2017
Author: kamil
Date: Mon Aug 7 03:57:58 2017
New Revision: 310246
URL: http://llvm.org/viewvc/llvm-project?rev=310246&view=rev
Log:
Add NetBSD support in asan_interceptors.h
Summary:
Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, filcab, kcc, fjricci, vitalybuka
Reviewed By: vitalybuka
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36375
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.h
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.h?rev=310246&r1=310245&r2=310246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.h (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.h Mon Aug 7 03:57:58 2017
@@ -55,7 +55,7 @@ void InitializePlatformInterceptors();
# define ASAN_INTERCEPT_FORK 0
#endif
-#if SANITIZER_FREEBSD || SANITIZER_LINUX
+#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD
# define ASAN_USE_ALIAS_ATTRIBUTE_FOR_INDEX 1
#else
# define ASAN_USE_ALIAS_ATTRIBUTE_FOR_INDEX 0
More information about the llvm-commits
mailing list