[project @ 2004-10-27 15:06:22 by wolfgang]
authorwolfgang <unknown>
Wed, 27 Oct 2004 15:06:22 +0000 (15:06 +0000)
committerwolfgang <unknown>
Wed, 27 Oct 2004 15:06:22 +0000 (15:06 +0000)
Mac OS X: Explicitly align symbol stub sections in Mach-O files; Apple's as
doesn't seem to do that in all cases.

ghc/compiler/nativeGen/PositionIndependentCode.hs

index c466b83..a6a7b27 100644 (file)
@@ -339,6 +339,7 @@ pprImportedSymbol importedLbl
             vcat [
                 ptext SLIT(".section __TEXT,__picsymbolstub1,")
                   <> ptext SLIT("symbol_stubs,pure_instructions,32"),
+                ptext SLIT("\t.align 2"),
                 ptext SLIT("L") <> pprCLabel_asm lbl <> ptext SLIT("$stub:"),
                     ptext SLIT("\t.indirect_symbol") <+> pprCLabel_asm lbl,
                     ptext SLIT("\tmflr r0"),