From ee676e2f6f84bc89354ede366939f038acf14763 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 4 Apr 2019 03:36:35 +0000 Subject: [PATCH] [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 --- libunwind/src/assembly.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h index 606cf2c92b31..7614b0c3657a 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)