Skip to content

Commit

Permalink
[libunwind] Export the weak alias in Mach-O
Browse files Browse the repository at this point in the history
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

llvm-svn: 357671
  • Loading branch information
petrhosek committed Apr 4, 2019
1 parent 8238604 commit ee676e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libunwind/src/assembly.h
Expand Up @@ -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)

Expand Down

0 comments on commit ee676e2

Please sign in to comment.