[compiler-rt] r310400 - Add NetBSD support in asan_interceptors.cc
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 8 12:09:48 PDT 2017
Author: kamil
Date: Tue Aug 8 12:09:48 2017
New Revision: 310400
URL: http://llvm.org/viewvc/llvm-project?rev=310400&view=rev
Log:
Add NetBSD support in asan_interceptors.cc
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, kcc, vitalybuka, filcab, fjricci
Reviewed By: vitalybuka
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36470
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=310400&r1=310399&r2=310400&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Tue Aug 8 12:09:48 2017
@@ -314,6 +314,11 @@ INTERCEPTOR(int, swapcontext, struct uco
}
#endif // ASAN_INTERCEPT_SWAPCONTEXT
+#if SANITIZER_NETBSD
+#define longjmp __longjmp14
+#define siglongjmp __siglongjmp14
+#endif
+
INTERCEPTOR(void, longjmp, void *env, int val) {
__asan_handle_no_return();
REAL(longjmp)(env, val);
More information about the llvm-commits
mailing list