summaryrefslogblamecommitdiff
path: root/src/ldso/i386/start.s
blob: c37a1faa03fbe69e95b6277ec239289618de116e (plain) (tree)
1
2
3
4
5
6
7
8
     

                
                     

                     
                     
                 


                 
                      
                     





                    

                     
                 
.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