projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb041e8
)
[project @ 2004-10-27 15:06:22 by wolfgang]
author
wolfgang
<unknown>
Wed, 27 Oct 2004 15:06:22 +0000
(15:06 +0000)
committer
wolfgang
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/nativeGen/PositionIndependentCode.hs
b/ghc/compiler/nativeGen/PositionIndependentCode.hs
index
c466b83
..
a6a7b27
100644
(file)
--- 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"),