commit | 6f1aaf12fb3befeb78f33cbc4243329861597a3e | [log] [tgz] |
---|---|---|
author | Matt Morehouse <mascasa@google.com> | Mon Sep 17 23:08:15 2018 +0000 |
committer | Matt Morehouse <mascasa@google.com> | Mon Sep 17 23:08:15 2018 +0000 |
tree | 728aaa842dbc787c0396db1b59a67d184c16e428 | |
parent | 3f946cd76db7e028e0fd12979b5d7bd2caf8917e [diff] |
[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
diff --git a/lib/fuzzer/FuzzerExtFunctionsWeak.cpp b/lib/fuzzer/FuzzerExtFunctionsWeak.cpp index a4e56fc..6a6ef49 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"