From 0eb20cae6f04f51213e9253f424b5cf961bb7811 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sun, 24 Sep 2017 02:20:50 +0200 Subject: [PATCH] fix bootstrap --- Elf2Mac/LdScript.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elf2Mac/LdScript.cc b/Elf2Mac/LdScript.cc index ae8385c926..7a4a7bf947 100644 --- a/Elf2Mac/LdScript.cc +++ b/Elf2Mac/LdScript.cc @@ -29,13 +29,13 @@ SECTIONS _stext = . ; PROVIDE(_rsrc_start = .); *(.rsrcheader) - . = ALIGN (2); _entry_trampoline = .; SHORT(DEFINED(__break_on_entry) ? 0xA9FF : 0x4e71); LONG(0x61000002); /* bsr *+2 */ SHORT(0x0697); /* addi.l #_, (a7) */ LONG(_start - _entry_trampoline - 6); + PROVIDE(_start = .); /* fallback entry point to a safe spot - needed for libretro bootstrap */ SHORT(0x4e75); /* rts */ *(.relocvars)