9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
22 lines
337 B
ArmAsm
22 lines
337 B
ArmAsm
#include "mlibc-asm/helpers.h"
|
|
|
|
PROC_START(_start)
|
|
lea (_GLOBAL_OFFSET_TABLE_@GOTPC,%pc), %a0
|
|
lea (_DYNAMIC,%pc), %a1
|
|
|
|
move.l %a1, %a5
|
|
sub.l (%a0), %a5
|
|
|
|
move.l %a5, -(%sp)
|
|
move.l %a1, -(%sp)
|
|
jbsr relocateSelf68k@PLTPC
|
|
addq.l #8, %sp
|
|
|
|
move.l %sp, -(%sp)
|
|
jbsr interpreterMain@PLTPC
|
|
|
|
jmp (%a0)
|
|
PROC_END(_start)
|
|
|
|
GNU_STACK_NOTE()
|