summaryrefslogtreecommitdiffstats
path: root/libunwind/src
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-04-04 03:36:35 +0000
committerPetr Hosek <phosek@chromium.org>2019-04-04 03:36:35 +0000
commitee676e2f6f84bc89354ede366939f038acf14763 (patch)
treee092b722398aa84bceb0ceef61248b7fcce9e32e /libunwind/src
parent8238604259e6a1f5aab5868283a3bfb14c46b486 (diff)
downloadbcm5719-llvm-ee676e2f6f84bc89354ede366939f038acf14763.tar.gz
bcm5719-llvm-ee676e2f6f84bc89354ede366939f038acf14763.zip
[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 llvm-svn: 357671
Diffstat (limited to 'libunwind/src')
-rw-r--r--libunwind/src/assembly.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h
index 606cf2c92b3..7614b0c3657 100644
--- a/libunwind/src/assembly.h
+++ b/libunwind/src/assembly.h
@@ -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)
OpenPOWER on IntegriCloud