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,16 @@
|
||||
#include "mlibc-asm/helpers.h"
|
||||
|
||||
PROC_START(_start)
|
||||
pcaddu18i $ra, %call36(relocateSelf)
|
||||
jirl $ra, $ra, 0
|
||||
|
||||
move $fp, $zero
|
||||
move $a0, $sp
|
||||
pcaddu18i $ra, %call36(interpreterMain)
|
||||
jirl $ra, $ra, 0
|
||||
|
||||
jr $a0
|
||||
PROC_END(_start)
|
||||
|
||||
GNU_STACK_NOTE()
|
||||
|
||||
Reference in New Issue
Block a user