summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerExtraCounters.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/FuzzerExtraCounters.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/FuzzerExtraCounters.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp b/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp
index 07dbe0fdee7..0e7a7761bf8 100644
--- a/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp
@@ -11,7 +11,7 @@
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
__attribute__((weak)) extern uint8_t __start___libfuzzer_extra_counters;
__attribute__((weak)) extern uint8_t __stop___libfuzzer_extra_counters;
OpenPOWER on IntegriCloud