X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f5b4f4fd612ae3c5d50cbde5b925fb50e97865f3;hp=3e88c7850635c7e5511bc2ac7dac7e8025b53e86;hb=8d2f8064aa3d2cc7380c447dfbd8929543f36f51;hpb=8cd48f0965c8b362ae21ec93528ba64a25a18b7f diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 3e88c785..f5b4f4fd 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -1,18 +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) + 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