commit | 3a1e7566dbfc85b397c9c4677606782fd9851ecc | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sun Aug 05 15:39:12 2012 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sun Aug 05 15:39:12 2012 -0400 |
tree | 1f2d89851e83f1ab6a123763cf068a7d04069ecb | |
parent | 7fee5f96063ffd55ba67a87a795222c30364e25f [diff] |
dlsym RTLD_NEXT support for mips untested
diff --git a/src/ldso/mips/dlsym.s b/src/ldso/mips/dlsym.s new file mode 100644 index 0000000..b1ea98b --- /dev/null +++ b/src/ldso/mips/dlsym.s
@@ -0,0 +1,15 @@ +.set noreorder +.global 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 + jalr $25 + sw $ra, 12($sp) + lw $ra, 12($sp) + jr $ra + addiu $sp, $sp, 16