From 32661f9d660b435033335e91ac7a26a53d55626a Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 18 Aug 2016 20:52:52 +0000 Subject: [PATCH] [libFuzzer] add more __attribute__((visibility("default"))) llvm-svn: 279143 --- llvm/lib/Fuzzer/FuzzerTracePC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Fuzzer/FuzzerTracePC.cpp b/llvm/lib/Fuzzer/FuzzerTracePC.cpp index 53341d3..e7f3f5d 100644 --- a/llvm/lib/Fuzzer/FuzzerTracePC.cpp +++ b/llvm/lib/Fuzzer/FuzzerTracePC.cpp @@ -37,11 +37,13 @@ static void HandlePC(uint32_t PC) { } // namespace fuzzer extern "C" { +__attribute__((visibility("default"))) void __sanitizer_cov_trace_pc() { fuzzer::HandlePC(static_cast( reinterpret_cast(__builtin_return_address(0)))); } +__attribute__((visibility("default"))) void __sanitizer_cov_trace_pc_indir(int *) { // Stub to allow linking with code built with // -fsanitize=indirect-calls,trace-pc. -- 2.7.4