diff --git a/arch/i386/crti.S b/arch/i386/crti.S new file mode 100755 index 0000000..f8c7b7b --- /dev/null +++ b/arch/i386/crti.S @@ -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 diff --git a/arch/i386/crtn.S b/arch/i386/crtn.S new file mode 100755 index 0000000..b465896 --- /dev/null +++ b/arch/i386/crtn.S @@ -0,0 +1,7 @@ + .section .init + popl %ebp + ret + + .section .fini + popl %ebp + ret