X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f5b4f4fd612ae3c5d50cbde5b925fb50e97865f3;hb=5271ff46b9e983bec5fd9ab79d5aaf096fa54157;hp=050adec8840a3121cf33f490b3dc03465b748eaa;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 050adec8..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 $0 - pushl $0 - 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