19 lines
355 B
ArmAsm
19 lines
355 B
ArmAsm
.global _start
|
|
.type _start, @function
|
|
|
|
.extern __crt_init
|
|
.type __crt_init, @function
|
|
|
|
.extern main
|
|
.type main, @function
|
|
|
|
_start:
|
|
# Magenta aligns the stack to a page boundry and subtracts 8.
|
|
# Add 8 to restore 16-byte alignment
|
|
add $8, %rsp
|
|
call __crt_init
|
|
|
|
# unreachable; __crt_init() will call mx_task_kill()
|
|
.loop:
|
|
jmp .loop
|