summaryrefslogblamecommitdiff
path: root/src/ldso/x86_64/start.s
blob: 1c5598aa42900c4cecf57018668acede415eb5fd (plain) (tree)
1
2
3
4
5
6
     

                

                        
                      







                    
                     
                 
.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