summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-09-17 23:08:15 +0000
committerMatt Morehouse <mascasa@google.com>2018-09-17 23:08:15 +0000
commit6f1aaf12fb3befeb78f33cbc4243329861597a3e (patch)
tree728aaa842dbc787c0396db1b59a67d184c16e428 /lib/fuzzer/FuzzerExtFunctionsWeak.cpp
parent3f946cd76db7e028e0fd12979b5d7bd2caf8917e (diff)
downloadcompiler-rt-6f1aaf12fb3befeb78f33cbc4243329861597a3e.tar.gz
[libFuzzer] Avoid fuzzer symbols being hidden.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1490845#c5. Patch By: Mike Hommey git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@342423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--lib/fuzzer/FuzzerExtFunctionsWeak.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerExtFunctionsWeak.cpp b/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
index a4e56fc27..6a6ef4932 100644
--- a/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -22,7 +22,7 @@
extern "C" {
// Declare these symbols as weak to allow them to be optionally defined.
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \
- __attribute__((weak)) RETURN_TYPE NAME FUNC_SIG
+ __attribute__((weak, visibility("default"))) RETURN_TYPE NAME FUNC_SIG
#include "FuzzerExtFunctions.def"