From 70c643c95739f24ead0083ebe4e6a94607bf4e88 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Wed, 27 Oct 2004 15:06:22 +0000 Subject: [PATCH] [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. --- ghc/compiler/nativeGen/PositionIndependentCode.hs | 1 + 1 file changed, 1 insertion(+) 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"), -- 1.7.10.4