summaryrefslogtreecommitdiff
path: root/src/ldso/i386/start.s
blob: 8e6a777dd5fcd30b1fbae1cab189314a850eadcc (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:
	xor %ebp,%ebp
	pop %ecx
	mov %esp,%eax
	and $-16,%esp
	mov %eax,%esi
	mov %ecx,%edi
	push %ebp
	call 1f
1:	addl $_GLOBAL_OFFSET_TABLE_,(%esp)
	push %eax
	push %ecx
	call __dynlink
	mov %esi,%esp
	push %edi
	xor %edx,%edx
	jmp *%eax