From 3a1e7566dbfc85b397c9c4677606782fd9851ecc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 5 Aug 2012 15:39:12 -0400 Subject: [PATCH] dlsym RTLD_NEXT support for mips untested --- src/ldso/mips/dlsym.s | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ldso/mips/dlsym.s diff --git a/src/ldso/mips/dlsym.s b/src/ldso/mips/dlsym.s new file mode 100644 index 00000000..b1ea98be --- /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 -- 2.25.1