summaryrefslogtreecommitdiff
path: root/src/ldso/i386/start.s
blob: b16f8af578f12670907fdc4938ff61de5973ab44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.text
.global _start
_start:
	xor %ebp,%ebp
	pop %edi
	mov %esp,%esi
	and $-16,%esp
	push %ebp
	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