[TOOLCHAIN] Hosted toolchain with musl libc

This commit is contained in:
2016-11-29 09:19:44 +01:00
parent 4f76557b73
commit ba2ecd725f
8 changed files with 336 additions and 8 deletions

25
libc/crt0.S Normal file
View File

@@ -0,0 +1,25 @@
.intel_syntax noprefix
.section .text
.global _start
_start:
movq rbp, 0
push rbp
push rbp
mov rbp, rsp
push rsi
push rdi
call _init
pop rdi
pop rsi
call main
call _fini
jmp $
.size _start, . - _start