Skip to content

Commit f5266f0

Browse files
committedAug 8, 2017
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 llvm-svn: 310400
1 parent 249fc7b commit f5266f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎compiler-rt/lib/asan/asan_interceptors.cc

+5
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ INTERCEPTOR(int, swapcontext, struct ucontext_t *oucp,
314314
}
315315
#endif // ASAN_INTERCEPT_SWAPCONTEXT
316316

317+
#if SANITIZER_NETBSD
318+
#define longjmp __longjmp14
319+
#define siglongjmp __siglongjmp14
320+
#endif
321+
317322
INTERCEPTOR(void, longjmp, void *env, int val) {
318323
__asan_handle_no_return();
319324
REAL(longjmp)(env, val);

0 commit comments

Comments
 (0)
Please sign in to comment.