X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f5b4f4fd612ae3c5d50cbde5b925fb50e97865f3;hp=4d5f572fee958e11736f54218981b5443274e898;hb=259071c249643ecb5e6799422d45d053cb64d515;hpb=e2ee1bdd8df7637267f5daae74e2849f77751f6e diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 4d5f572f..f5b4f4fd 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -1,19 +1,19 @@ +.weak _init +.weak _fini .text .global _start _start: - xorl %ebp,%ebp - popl %ecx - movl %esp,%eax - andl $-16,%esp - pushl %esp - pushl %esp - pushl %edx - pushl %ebp - pushl %ebp - pushl %eax - pushl %ecx - call 1f -1: addl $[main-.],(%esp) - //pushl $main + xor %ebp,%ebp + pop %ecx + mov %esp,%eax + and $-16,%esp + push %esp + push %esp + push %edx + push $_fini + push $_init + push %eax + push %ecx + push $main call __libc_start_main 1: jmp 1b