meta: move photon/libc to root
This commit is contained in:
20
libc/sys/linux/machine/x86_64/crt0.s
Normal file
20
libc/sys/linux/machine/x86_64/crt0.s
Normal file
@@ -0,0 +1,20 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user