summaryrefslogblamecommitdiff
path: root/src/ldso/mips/dlsym.s
blob: 1573e519380e4398b4165774fd88d98de915fa22 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

              
               







                                     
                       

                


                          
.set noreorder
.global dlsym
.hidden __dlsym
.type dlsym,@function
dlsym:
	lui $gp, %hi(_gp_disp)
	addiu $gp, %lo(_gp_disp)
	addu $gp, $gp, $25
	move $6, $ra
	lw $25, %call16(__dlsym)($gp)
	addiu $sp, $sp, -16
	sw $ra, 12($sp)
	jalr $25
	nop
	lw $ra, 12($sp)
	jr $ra
	addiu $sp, $sp, 16