summaryrefslogtreecommitdiff
path: root/src/ldso/i386/start.s
blob: c37a1faa03fbe69e95b6277ec239289618de116e (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 _dlstart
_dlstart:
	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