2020-04-30 17:44:54 +01:00
|
|
|
.global _start
|
|
|
|
|
.type _start, @function
|
|
|
|
|
|
2020-05-12 23:23:29 +01:00
|
|
|
.extern __crt_init
|
|
|
|
|
.type __crt_init, @function
|
2020-04-30 17:44:54 +01:00
|
|
|
|
|
|
|
|
.extern main
|
|
|
|
|
.type main, @function
|
|
|
|
|
|
|
|
|
|
_start:
|
2021-01-05 14:21:24 +00:00
|
|
|
# Magenta aligns the stack to a page boundry and subtracts 8.
|
|
|
|
|
# Add 8 to restore 16-byte alignment
|
|
|
|
|
add $8, %rsp
|
2020-05-12 23:23:29 +01:00
|
|
|
call __crt_init
|
2020-12-21 13:06:40 +00:00
|
|
|
|
|
|
|
|
# unreachable; __crt_init() will call mx_task_kill()
|
|
|
|
|
.loop:
|
|
|
|
|
jmp .loop
|