Disable ASan exceptions on NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 18:05:49 +0000 (18:05 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 18:05:49 +0000 (18:05 +0000)
commitad4632e07a3a07be8c046b02a64fbc4ea6b81ab9
tree411a5b9d463a86f9951e6cef58a89e79d5d99916
parentabf75940990d19634f837022dfe931b9b42fce23
Disable ASan exceptions on NetBSD

This is a workarond for the fallout from D42644:
[asan] Intercept std::rethrow_exception indirectly.

Reported problem on NetBSD/amd64:

$ sh ./projects/compiler-rt/test/sanitizer_common/asan-i386-NetBSD/NetBSD/Output/ttyent.cc.script
/usr/lib/i386/libgcc.a(unwind-dw2.o): In function `_Unwind_RaiseException':
unwind-dw2.c:(.text+0x1b41): multiple definition of `_Unwind_RaiseException'
/public/llvm-build/lib/clang/7.0.0/lib/netbsd/libclang_rt.asan-i386.a(asan_interceptors.cc.o):/public/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:337: first defined here
clang-7.0: error: linker command failed with exit code 1 (use -v to see invocation)

llvm-svn: 326216
compiler-rt/lib/asan/asan_interceptors.h