projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
763c59d
)
[libFuzzer] add more __attribute__((visibility("default")))
author
Kostya Serebryany
<kcc@google.com>
Thu, 18 Aug 2016 20:52:52 +0000
(20:52 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Thu, 18 Aug 2016 20:52:52 +0000
(20:52 +0000)
llvm-svn: 279143
llvm/lib/Fuzzer/FuzzerTracePC.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Fuzzer/FuzzerTracePC.cpp
b/llvm/lib/Fuzzer/FuzzerTracePC.cpp
index
53341d3
..
e7f3f5d
100644
(file)
--- 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<uint32_t>(
reinterpret_cast<uintptr_t>(__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.