From: wolfgang Date: Wed, 27 Oct 2004 15:06:22 +0000 (+0000) Subject: [project @ 2004-10-27 15:06:22 by wolfgang] X-Git-Tag: Initial_conversion_from_CVS_complete~1481 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=70c643c95739f24ead0083ebe4e6a94607bf4e88;p=ghc-hetmet.git [project @ 2004-10-27 15:06:22 by wolfgang] Mac OS X: Explicitly align symbol stub sections in Mach-O files; Apple's as doesn't seem to do that in all cases. --- diff --git a/ghc/compiler/nativeGen/PositionIndependentCode.hs b/ghc/compiler/nativeGen/PositionIndependentCode.hs index c466b83..a6a7b27 100644 --- a/ghc/compiler/nativeGen/PositionIndependentCode.hs +++ b/ghc/compiler/nativeGen/PositionIndependentCode.hs @@ -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"),