forked from OSchip/llvm-project
[libFuzzer] add more __attribute__((visibility("default")))
llvm-svn: 279143
This commit is contained in:
parent
763c59dc9a
commit
32661f9d66
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue