mirror of
https://github.com/autc04/Retro68.git
synced 2024-05-29 10:41:39 +00:00
fix bootstrap
This commit is contained in:
parent
0e3a0a5d18
commit
0eb20cae6f
|
@ -29,13 +29,13 @@ SECTIONS
|
||||||
_stext = . ;
|
_stext = . ;
|
||||||
PROVIDE(_rsrc_start = .);
|
PROVIDE(_rsrc_start = .);
|
||||||
*(.rsrcheader)
|
*(.rsrcheader)
|
||||||
|
|
||||||
. = ALIGN (2);
|
. = ALIGN (2);
|
||||||
_entry_trampoline = .;
|
_entry_trampoline = .;
|
||||||
SHORT(DEFINED(__break_on_entry) ? 0xA9FF : 0x4e71);
|
SHORT(DEFINED(__break_on_entry) ? 0xA9FF : 0x4e71);
|
||||||
LONG(0x61000002); /* bsr *+2 */
|
LONG(0x61000002); /* bsr *+2 */
|
||||||
SHORT(0x0697); /* addi.l #_, (a7) */
|
SHORT(0x0697); /* addi.l #_, (a7) */
|
||||||
LONG(_start - _entry_trampoline - 6);
|
LONG(_start - _entry_trampoline - 6);
|
||||||
|
PROVIDE(_start = .); /* fallback entry point to a safe spot - needed for libretro bootstrap */
|
||||||
SHORT(0x4e75); /* rts */
|
SHORT(0x4e75); /* rts */
|
||||||
|
|
||||||
*(.relocvars)
|
*(.relocvars)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user