user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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()
|
||||
Reference in New Issue
Block a user