[libFuzzer] Marking exported symbols as visible. Patch by Mike Aizatsky
authorKostya Serebryany <kcc@google.com>
Wed, 30 Sep 2015 22:22:37 +0000 (22:22 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 30 Sep 2015 22:22:37 +0000 (22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248954 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerTraceState.cpp

index a3934c1..80dd6bc 100644 (file)
@@ -499,7 +499,7 @@ void __sanitizer_weak_hook_strcmp(void *caller_pc, const char *s1,
   TS->TraceCmpCallback(PC, N, fuzzer::ICMP_EQ, S1, S2);
 }
 
   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;
 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 SizeAndType, uint64_t Arg1,
   TS->TraceCmpCallback(PC, CmpSize, Type, Arg1, Arg2);
 }
 
   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));
 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));