wut/libraries/wutnewlib/crt0.s
2018-05-26 18:18:16 +01:00

17 lines
251 B
ArmAsm

.extern main
.extern exit
.global _start
_start:
stwu 1, -0x8(1)
stw 3, 0(1)
stw 4, 4(1)
bl __init_wut_newlibc
lwz 3, 0(1)
lwz 4, 4(1)
bl main
# Calling __fini is leading to crashes!
# bl __fini
addi 1, 1, 0x8
b exit