summaryrefslogtreecommitdiff
path: root/src/ldso/x86_64/start.s
blob: 1c5598aa42900c4cecf57018668acede415eb5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.text
.global _dlstart
_dlstart:
	mov (%rsp),%rdi
	lea 8(%rsp),%rsi
	call __dynlink
	pop %rdi
1:	dec %edi
	pop %rsi
	cmp $-1,%rsi
	jz 1b
	inc %edi
	push %rsi
	push %rdi
	xor %edx,%edx
	jmp *%rax