X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f5b4f4fd612ae3c5d50cbde5b925fb50e97865f3;hb=fcfba99503746e44585d7e318562dd425e8ff390;hp=66ee11ab1a8bdf4342ad6d5bb3c442e76499170c;hpb=4ce3cb5cddda7b4ee9643e1f75ee5b8f1f191906;p=musl diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 66ee11ab..f5b4f4fd 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -3,20 +3,17 @@ .text .global _start _start: - xorl %ebp,%ebp - popl %ecx - movl %esp,%eax - andl $-16,%esp - pushl %esp - pushl %esp - pushl %edx - call 1f -1: addl $[_fini-.],(%esp) - call 1f -1: addl $[_init-.],(%esp) - pushl %eax - pushl %ecx - call 1f -1: addl $[main-.],(%esp) + 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