Files
photon/libc/sys/linux/machine/x86_64/crt0.s

21 lines
311 B
ArmAsm

.global _start
.type _start, @function
.extern __fio_init
.type __fio_init, @function
.extern main
.type main, @function
_start:
xor %ebp, %ebp
mov (%rsp), %edi
lea 8(%rsp), %rsi
lea 16(%rsp, %rdi, 8), %rdx
xor %eax, %eax
call main
movq %rax, %rdi
movq $60, %rax
syscall