[compiler-rt] r342423 - [libFuzzer] Avoid fuzzer symbols being hidden.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 16:08:16 PDT 2018
Author: morehouse
Date: Mon Sep 17 16:08:15 2018
New Revision: 342423
URL: http://llvm.org/viewvc/llvm-project?rev=342423&view=rev
Log:
[libFuzzer] Avoid fuzzer symbols being hidden.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1490845#c5.
Patch By: Mike Hommey
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp?rev=342423&r1=342422&r2=342423&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp Mon Sep 17 16:08:15 2018
@@ -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"
More information about the llvm-commits
mailing list