Commit 7e4fa0a6 authored by's avatar
Browse files

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.

parent 2bed4583
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment