experimental dynamic linker!
[musl] / src / ldso / i386 / start.s
1 .text
2 .global _start
3 _start:
4         xorl %ebp,%ebp
5         popl %ecx
6         movl %esp,%eax
7         andl $-16,%esp
8         movl %eax,%esi
9         movl %ecx,%edi
10         pushl %ebp
11         call 1f
12 1:      addl $_GLOBAL_OFFSET_TABLE_,(%esp)
13         pushl %eax
14         pushl %ecx
15         call __dynlink
16         movl %esi,%esp
17         pushl %edi
18         xorl %edx,%edx
19         jmp *%eax