[llvm] r248954 - [libFuzzer] Marking exported symbols as visible. Patch by Mike Aizatsky

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 15:22:37 PDT 2015


Author: kcc
Date: Wed Sep 30 17:22:37 2015
New Revision: 248954

URL: http://llvm.org/viewvc/llvm-project?rev=248954&view=rev
Log:
[libFuzzer] Marking exported symbols as visible. Patch by Mike Aizatsky

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerTraceState.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerTraceState.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTraceState.cpp?rev=248954&r1=248953&r2=248954&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTraceState.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTraceState.cpp Wed Sep 30 17:22:37 2015
@@ -499,7 +499,7 @@ void __sanitizer_weak_hook_strcmp(void *
   TS->TraceCmpCallback(PC, N, fuzzer::ICMP_EQ, S1, S2);
 }
 
-
+__attribute__((visibility("default")))
 void __sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1,
                                uint64_t Arg2) {
   if (!TS) return;
@@ -509,6 +509,7 @@ void __sanitizer_cov_trace_cmp(uint64_t
   TS->TraceCmpCallback(PC, CmpSize, Type, Arg1, Arg2);
 }
 
+__attribute__((visibility("default")))
 void __sanitizer_cov_trace_switch(uint64_t Val, uint64_t *Cases) {
   if (!TS) return;
   uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));




More information about the llvm-commits mailing list