summaryrefslogtreecommitdiff
path: root/src/ldso/i386/start.s
blob: 47c2748bd064f02467d045756a83ee667a42ff03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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