X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fldso%2Fi386%2Fstart.s;fp=src%2Fldso%2Fi386%2Fstart.s;h=47c2748bd064f02467d045756a83ee667a42ff03;hb=51e2d8310222ddd4d4e895f55c627100d863aa95;hp=0000000000000000000000000000000000000000;hpb=d43ff110bcb258df61448d21da3b1a89088388f6;p=musl diff --git a/src/ldso/i386/start.s b/src/ldso/i386/start.s new file mode 100644 index 00000000..47c2748b --- /dev/null +++ b/src/ldso/i386/start.s @@ -0,0 +1,19 @@ +.text +.global _start +_start: + xorl %ebp,%ebp + popl %ecx + movl %esp,%eax + andl $-16,%esp + movl %eax,%esi + movl %ecx,%edi + pushl %ebp + call 1f +1: addl $_GLOBAL_OFFSET_TABLE_,(%esp) + pushl %eax + pushl %ecx + call __dynlink + movl %esi,%esp + pushl %edi + xorl %edx,%edx + jmp *%eax