X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=crt%2Fi386%2Fcrt1.s;h=f520745c9c58b50940876ab5d033643e9f4a3957;hp=3e88c7850635c7e5511bc2ac7dac7e8025b53e86;hb=c9dea48f84cd772ac250c091356dd6ef956ea3f6;hpb=8cd48f0965c8b362ae21ec93528ba64a25a18b7f diff --git a/crt/i386/crt1.s b/crt/i386/crt1.s index 3e88c785..f520745c 100644 --- a/crt/i386/crt1.s +++ b/crt/i386/crt1.s @@ -1,3 +1,5 @@ +.weak _init +.weak _fini .text .global _start _start: @@ -8,11 +10,10 @@ _start: pushl %esp pushl %esp pushl %edx - pushl %ebp - pushl %ebp + pushl $_fini + pushl $_init pushl %eax pushl %ecx - call 1f -1: addl $[main-.],(%esp) + pushl $main call __libc_start_main 1: jmp 1b