X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=crt%2Fi386%2Fcrt1.s;h=66ee11ab1a8bdf4342ad6d5bb3c442e76499170c;hb=a9014ac1b9bc813a21752cd40e0a73441860e6e6;hp=8702052a75f330f4985e1a70e9af241a5e55884d;hpb=ba68efc921578438db5ab263edd2e9c4654bb412;p=musl diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 8702052a..66ee11ab 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -1,3 +1,5 @@ +.weak _init +.weak _fini .text .global _start _start: @@ -8,10 +10,13 @@ _start: pushl %esp pushl %esp pushl %edx - pushl %ebp - pushl %ebp + call 1f +1: addl $[_fini-.],(%esp) + call 1f +1: addl $[_init-.],(%esp) pushl %eax pushl %ecx - pushl $main + call 1f +1: addl $[main-.],(%esp) call __libc_start_main -.L0: jmp .L0 +1: jmp 1b