Index: lib/Fuzzer/FuzzerTracePC.cpp =================================================================== --- lib/Fuzzer/FuzzerTracePC.cpp +++ lib/Fuzzer/FuzzerTracePC.cpp @@ -57,7 +57,14 @@ } // namespace fuzzer -extern "C" void __sanitizer_cov_trace_pc() { +extern "C" { +void __sanitizer_cov_trace_pc() { fuzzer::HandlePC(static_cast( reinterpret_cast(__builtin_return_address(0)))); } + +void __sanitizer_cov_trace_pc_indir(int *) { + // Stub to allow linking with code built with + // -fsanitize=indirect-calls,trace-pc. +} +}