[compiler-rt] r310400 - Add NetBSD support in asan_interceptors.cc
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 01:59:27 PDT 2017
Hi Kamil,
This bot is segfaulting on some ASAN tests and this commit looks like
the only compiler-rt change in the range:
http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/9452
Any idea what the problem might be?
Thanks,
Diana
On 8 August 2017 at 21:09, Kamil Rytarowski via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list