X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fldso%2Fi386%2Fstart.s;h=b16f8af578f12670907fdc4938ff61de5973ab44;hb=faea4c9937d36b17e53fdc7d5a254d7e936e1755;hp=8e6a777dd5fcd30b1fbae1cab189314a850eadcc;hpb=d19adeec52ee2e5f9524d306576cfd6bfc4a031a;p=musl diff --git a/src/ldso/i386/start.s b/src/ldso/i386/start.s index 8e6a777d..b16f8af5 100644 --- a/src/ldso/i386/start.s +++ b/src/ldso/i386/start.s @@ -2,18 +2,21 @@ .global _start _start: xor %ebp,%ebp - pop %ecx - mov %esp,%eax + pop %edi + mov %esp,%esi and $-16,%esp - mov %eax,%esi - mov %ecx,%edi push %ebp - call 1f -1: addl $_GLOBAL_OFFSET_TABLE_,(%esp) - push %eax - push %ecx + push %ebp + push %esi + push %edi call __dynlink mov %esi,%esp +1: dec %edi + pop %esi + cmp $-1,%esi + jz 1b + inc %edi + push %esi push %edi xor %edx,%edx jmp *%eax