Files
KirkOS/user/include/mlibc/sysdeps/linux/m68k/crt-src/Scrt1.S
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

17 lines
310 B
ArmAsm

.section .text
.global _start
.type _start, %function
.type main, %function
.type __mlibc_entry, %function
_start:
suba.l %fp, %fp
move.l %sp, %d0
lea _GLOBAL_OFFSET_TABLE_@GOTPC (%pc), %a5
move.l main@GOT(%a5), -(%sp)
move.l %d0, -(%sp)
jbsr __mlibc_entry@PLTPC
.section .note.GNU-stack,"",%progbits