X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f5b4f4fd612ae3c5d50cbde5b925fb50e97865f3;hb=f18846dd3a048598676e10b2a7b9f931bb3d1d6a;hp=8702052a75f330f4985e1a70e9af241a5e55884d;hpb=ba68efc921578438db5ab263edd2e9c4654bb412;p=musl diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 8702052a..f5b4f4fd 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -1,17 +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 - 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 -.L0: jmp .L0 +1: jmp 1b