diff options
author | Kamil Rytarowski <n54@gmx.com> | 2019-12-19 03:21:46 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2019-12-19 03:23:51 +0100 |
commit | 3a189bac9bb111c9a59339015ab0d4e2fed735f4 (patch) | |
tree | 33bbf1794a24060fab6a14645737c7c094a76ab4 /compiler-rt | |
parent | f5440ec41d8ef9985b65c1cc66b747529ce86a40 (diff) | |
download | bcm5719-llvm-3a189bac9bb111c9a59339015ab0d4e2fed735f4.tar.gz bcm5719-llvm-3a189bac9bb111c9a59339015ab0d4e2fed735f4.zip |
[compiler-rt] Enable SANITIZER_CAN_USE_PREINIT_ARRAY on NetBSD
.preinit_array is supported since 9.0.
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h index 00226305e07..d0ffc79b061 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h @@ -105,7 +105,7 @@ // FIXME: do we have anything like this on Mac? #ifndef SANITIZER_CAN_USE_PREINIT_ARRAY #if ((SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_OPENBSD || \ - SANITIZER_FUCHSIA) && !defined(PIC) + SANITIZER_FUCHSIA || SANITIZER_NETBSD) && !defined(PIC) #define SANITIZER_CAN_USE_PREINIT_ARRAY 1 // Before Solaris 11.4, .preinit_array is fully supported only with GNU ld. // FIXME: Check for those conditions. |