[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

git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@357671 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/src/assembly.h b/src/assembly.h
index 606cf2c..7614b0c 100644
--- a/src/assembly.h
+++ b/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)