[libunwind] r357671 - [libunwind] Export the weak alias in Mach-O
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 3 20:36:35 PDT 2019
Author: phosek
Date: Wed Apr 3 20:36:35 2019
New Revision: 357671
URL: http://llvm.org/viewvc/llvm-project?rev=357671&view=rev
Log:
[libunwind] Export the weak alias in Mach-O
This is not necessary for ELF since .globl and .weak are mutually
exclusive, but is necessary for Mach-O otherwise the symbol isn't
visible externally.
Differential Revision: https://reviews.llvm.org/D60245
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=357671&r1=357670&r2=357671&view=diff
==============================================================================
--- libunwind/trunk/src/assembly.h (original)
+++ libunwind/trunk/src/assembly.h Wed Apr 3 20:36:35 2019
@@ -47,6 +47,7 @@
#define HIDDEN_SYMBOL(name) .private_extern name
#define WEAK_SYMBOL(name) .weak_reference name
#define WEAK_ALIAS(name, aliasname) \
+ .globl SYMBOL_NAME(aliasname) SEPARATOR \
WEAK_SYMBOL(aliasname) SEPARATOR \
SYMBOL_NAME(aliasname) = SYMBOL_NAME(name)
More information about the cfe-commits
mailing list