[compiler-rt] r310400 - Add NetBSD support in asan_interceptors.cc

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 03:23:59 PDT 2017


Hello,

My change should produce no binary change for Linux (unless a compiler bug).

Please try to bisect other involved commits.

On 09.08.2017 10:59, Diana Picus wrote:
> 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170809/d47e6c38/attachment.sig>


More information about the llvm-commits mailing list