Skip to content

Commit

Permalink
[libFuzzer] Marking exported symbols as visible. Patch by Mike Aizatsky
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248954 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kcc committed Sep 30, 2015
1 parent 5a49a9a commit 22e2376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Fuzzer/FuzzerTraceState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void __sanitizer_weak_hook_strcmp(void *caller_pc, const char *s1,
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;
Expand All @@ -509,6 +509,7 @@ void __sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1,
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));
Expand Down

0 comments on commit 22e2376

Please sign in to comment.