Update crti & crtn

This commit is contained in:
Alex 2022-11-10 19:54:23 +02:00
parent 5800db45d6
commit 0052eac96a
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
4 changed files with 20 additions and 0 deletions

13
libc/runtime/crti.S Normal file
View File

@ -0,0 +1,13 @@
.section .init
.global _init
.type _init, @function
_init:
push %rbp
movq %rsp, %rbp
.section .fini
.global _fini
.type _fini, @function
_fini:
push %rbp
movq %rsp, %rbp

View File

7
libc/runtime/crtn.S Normal file
View File

@ -0,0 +1,7 @@
.section .init
popq %rbp
ret
.section .fini
popq %rbp
ret

View File