summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-08-30 22:44:11 +0000
committerKamil Rytarowski <n54@gmx.com>2017-08-30 22:44:11 +0000
commit8da2722a9f5146067ce650583ea6b32eaa663c8a (patch)
treefa49041a525a579cc69d96fcf9ceca7df3e803a8 /compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
parent76794daf05456edd3042906fd2670ea7a32e977c (diff)
downloadbcm5719-llvm-8da2722a9f5146067ce650583ea6b32eaa663c8a.tar.gz
bcm5719-llvm-8da2722a9f5146067ce650583ea6b32eaa663c8a.zip
Add preliminary NetBSD support in libfuzzer
Summary: This code already works and passes some number of tests. There is need to finish remaining sanitizers to get better coverage. Many tests fail due to overly long file names of executables (>31). This is a current shortcoming of the NetBSD 8(beta) kernel, as certain functions can fail (like retrieving file name of executable). Sponsored by <The NetBSD Foundation> Reviewers: joerg, kcc, vitalybuka, george.karpenkov Reviewed By: kcc Subscribers: mgorny, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D37304 llvm-svn: 312183
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
index 503f0395cf8..5056eb8a962 100644
--- a/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -13,7 +13,7 @@
// to clients right now.
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
@@ -51,4 +51,4 @@ ExternalFunctions::ExternalFunctions() {
} // namespace fuzzer
-#endif // LIBFUZZER_LINUX
+#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD
OpenPOWER on IntegriCloud