[libFuzzer] add more __attribute__((visibility("default")))

llvm-svn: 279143
This commit is contained in:
Kostya Serebryany 2016-08-18 20:52:52 +00:00
parent 763c59dc9a
commit 32661f9d66
1 changed files with 2 additions and 0 deletions

View File

@ -37,11 +37,13 @@ static void HandlePC(uint32_t PC) {
} // namespace fuzzer } // namespace fuzzer
extern "C" { extern "C" {
__attribute__((visibility("default")))
void __sanitizer_cov_trace_pc() { void __sanitizer_cov_trace_pc() {
fuzzer::HandlePC(static_cast<uint32_t>( fuzzer::HandlePC(static_cast<uint32_t>(
reinterpret_cast<uintptr_t>(__builtin_return_address(0)))); reinterpret_cast<uintptr_t>(__builtin_return_address(0))));
} }
__attribute__((visibility("default")))
void __sanitizer_cov_trace_pc_indir(int *) { void __sanitizer_cov_trace_pc_indir(int *) {
// Stub to allow linking with code built with // Stub to allow linking with code built with
// -fsanitize=indirect-calls,trace-pc. // -fsanitize=indirect-calls,trace-pc.