From d9e0ba49a4cf288eee9b58857b92a89f5a141c4b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Dec 2005 21:46:14 +0000 Subject: [PATCH] Weak and linkonce global vars should still have a .globl emitted for them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24747 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index b82e90344fa..83e3b0519a9 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -468,7 +468,8 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { switch (I->getLinkage()) { case GlobalValue::LinkOnceLinkage: case GlobalValue::WeakLinkage: - O << ".weak_definition " << name << '\n' + O << ".globl " << name << '\n' + << ".weak_definition " << name << '\n' << ".private_extern " << name << '\n'; SwitchSection(".section __DATA,__datacoal_nt,coalesced", I); break; -- 2.34.1