Constructor stuff

This commit is contained in:
Gitea 2020-12-21 20:55:00 -06:00
parent 07ea42f2e1
commit 1f281c4d20
2 changed files with 20 additions and 0 deletions

13
arch/i386/crti.S Executable file
View File

@ -0,0 +1,13 @@
.section .init
.global _init
.type _init, @function
_init:
push %ebp
movl %esp, %ebp
.section .fini
.global _fini
.type _fini, @function
_fini:
push %ebp
movl %esp, %ebp

7
arch/i386/crtn.S Executable file
View File

@ -0,0 +1,7 @@
.section .init
popl %ebp
ret
.section .fini
popl %ebp
ret