summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/PositionIndependentCode.hs
diff options
context:
space:
mode:
authorwolfgang.thaller@gmx.net <unknown>2007-04-12 21:53:13 +0000
committerwolfgang.thaller@gmx.net <unknown>2007-04-12 21:53:13 +0000
commit7e4fa0a6153ffa7dd17a33d5ab51b7181933590b (patch)
tree210d1911fb4bb18a94941eb32f0cdb563cb133b0 /compiler/nativeGen/PositionIndependentCode.hs
parent2bed45837718c70cee1336c4de9fab7708e7ea96 (diff)
downloadhaskell-7e4fa0a6153ffa7dd17a33d5ab51b7181933590b.tar.gz
Darwin/i386 NCG: fix assembly syntax in symbol stubs
In i386 position-independent symbol stubs, the NCG used to print jmp %edx instead of jmp *%edx Apple's assembler used to silently accept this, but has recently started to print warnings about it. MERGE TO STABLE.
Diffstat (limited to 'compiler/nativeGen/PositionIndependentCode.hs')
-rw-r--r--compiler/nativeGen/PositionIndependentCode.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs
index ead98632ed..80023e16d5 100644
--- a/compiler/nativeGen/PositionIndependentCode.hs
+++ b/compiler/nativeGen/PositionIndependentCode.hs
@@ -442,7 +442,7 @@ pprImportedSymbol importedLbl
ptext SLIT("1:"),
ptext SLIT("\tmovl L") <> pprCLabel_asm lbl
<> ptext SLIT("$lazy_ptr-1b(%eax),%edx"),
- ptext SLIT("\tjmp %edx"),
+ ptext SLIT("\tjmp *%edx"),
ptext SLIT("L") <> pprCLabel_asm lbl
<> ptext SLIT("$stub_binder:"),
ptext SLIT("\tlea L") <> pprCLabel_asm lbl