llvm-project/compiler-rt/lib
Kamil Rytarowski 02519fc7a6 Add getauxval() compat for NetBSD
Summary:
getauxval() is not available on NetBSD and there is no a direct equivalent.

Add a function that implements the same semantics with NetBSD internals.

Reorder the GetPageSize() functions to prefer the sysctl approach for NetBSD.
It no longer makes a difference which approach is better. Avoid changing
conditional code path.

Reviewers: vitalybuka, dvyukov, mgorny, joerg

Reviewed By: vitalybuka

Subscribers: llvm-commits, #sanitizers

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D67329

llvm-svn: 371758
2019-09-12 18:57:58 +00:00
..
BlocksRuntime
asan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
builtins compiler-rt: use fp_t instead of long double, for consistency 2019-09-09 13:50:20 +00:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt [compiler-rt][crt] Pass -fno-lto in check_cxx_section_exists 2019-08-20 07:41:14 +00:00
dfsan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
fuzzer [libFuzzer] Make -merge=1 to reuse coverage information from the control file. 2019-09-11 14:11:08 +00:00
gwp_asan Add GWP-ASan fuzz target to compiler-rt/tools. 2019-08-27 18:28:07 +00:00
hwasan [compiler-rt] Better lint output for .inc files 2019-09-12 01:35:09 +00:00
interception [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
lsan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
msan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
profile Revert "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 09:16:17 +00:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common Add getauxval() compat for NetBSD 2019-09-12 18:57:58 +00:00
scudo Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
ubsan Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
ubsan_minimal compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
xray Re-land "[compiler-rt] Migrate llvm::make_unique to std::make_unique" 2019-08-15 14:57:44 +00:00
CMakeLists.txt Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation" 2019-04-30 18:13:22 +00:00