Missing .globl for weak / link-once .text symbols.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 22 Feb 2006 23:59:57 +0000 (23:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 22 Feb 2006 23:59:57 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26321 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ATTAsmPrinter.cpp

index f1774fd8946c9f0cc9f61a7a43705c6785ec2fc2..ff96e05127cb240a8810e1126e7a02ad8aa5a477 100755 (executable)
@@ -51,6 +51,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
     if (forDarwin) {
       SwitchSection(".section __TEXT,__textcoal_nt,coalesced,pure_instructions",
                     F);
+      O << "\t.globl\t" << CurrentFnName << "\n";
       O << "\t.weak_definition\t" << CurrentFnName << "\n";
     } else {
       EmitAlignment(4, F);     // FIXME: This should be parameterized somewhere.