From: Kostya Serebryany Date: Thu, 23 Mar 2017 23:48:47 +0000 (+0000) Subject: [libFuzzer] fix non-linux build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce68a403f276c5337a4f72603952e8f091ac6c4a;p=llvm [libFuzzer] fix non-linux build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298666 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/test/TableLookupTest.cpp b/lib/Fuzzer/test/TableLookupTest.cpp index 165afdb391f..f9d5610820f 100644 --- a/lib/Fuzzer/test/TableLookupTest.cpp +++ b/lib/Fuzzer/test/TableLookupTest.cpp @@ -22,7 +22,9 @@ const size_t N = 1 << 12; // Use either `Counters[Idx] = 1` or `Counters[Idx]++;` // depending on whether multiple occurrences of the event 'Idx' // is important to distinguish from one occurrence. +#ifdef __linux__ alignas(64) __attribute__((section("__libfuzzer_extra_counters"))) +#endif static uint8_t Counters[N]; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {