Constructor stuff
This commit is contained in:
parent
07ea42f2e1
commit
1f281c4d20
2 changed files with 20 additions and 0 deletions
13
arch/i386/crti.S
Executable file
13
arch/i386/crti.S
Executable 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
7
arch/i386/crtn.S
Executable file
|
@ -0,0 +1,7 @@
|
|||
.section .init
|
||||
popl %ebp
|
||||
ret
|
||||
|
||||
.section .fini
|
||||
popl %ebp
|
||||
ret
|
Loading…
Reference in a new issue