From 7e4fa0a6153ffa7dd17a33d5ab51b7181933590b Mon Sep 17 00:00:00 2001 From: "wolfgang.thaller@gmx.net" Date: Thu, 12 Apr 2007 21:53:13 +0000 Subject: [PATCH] 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. --- compiler/nativeGen/PositionIndependentCode.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs index ead9863..80023e1 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 -- 1.7.10.4