[libunwind] r348832 - Don't export assembly functions when function visibility annotations are disabled
Martin Storsjo via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 10 23:34:14 PST 2018
Author: mstorsjo
Date: Mon Dec 10 23:34:14 2018
New Revision: 348832
URL: http://llvm.org/viewvc/llvm-project?rev=348832&view=rev
Log:
Don't export assembly functions when function visibility annotations are disabled
Patch by Peiyuan Song!
Differential Revision: https://reviews.llvm.org/D55537
Modified:
libunwind/trunk/src/assembly.h
Modified: libunwind/trunk/src/assembly.h
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/assembly.h?rev=348832&r1=348831&r2=348832&view=diff
==============================================================================
--- libunwind/trunk/src/assembly.h (original)
+++ libunwind/trunk/src/assembly.h Mon Dec 10 23:34:14 2018
@@ -76,7 +76,11 @@
.section .drectve,"yn" SEPARATOR \
.ascii "-export:", #name, "\0" SEPARATOR \
.text
+#if defined(_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS)
+#define EXPORT_SYMBOL(name)
+#else
#define EXPORT_SYMBOL(name) EXPORT_SYMBOL2(name)
+#endif
#define HIDDEN_SYMBOL(name)
#define NO_EXEC_STACK_DIRECTIVE
More information about the cfe-commits
mailing list