From 83933573aff71a5d178ab71912f177d2d844e63e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 6 Mar 2016 17:41:56 +0000 Subject: add mips64 port patch by Mahesh Bodapati and Jaydeep Patil of Imagination Technologies. --- src/ldso/mips64/dlsym.s | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/ldso/mips64/dlsym.s (limited to 'src/ldso/mips64/dlsym.s') diff --git a/src/ldso/mips64/dlsym.s b/src/ldso/mips64/dlsym.s new file mode 100644 index 00000000..32e0dddc --- /dev/null +++ b/src/ldso/mips64/dlsym.s @@ -0,0 +1,17 @@ +.set noreorder +.global dlsym +.hidden __dlsym +.type dlsym,@function +dlsym: + lui $3, %hi(%neg(%gp_rel(dlsym))) + daddiu $3, $3, %lo(%neg(%gp_rel(dlsym))) + daddu $3, $3, $25 + move $6, $ra + ld $25, %got_disp(__dlsym)($3) + daddiu $sp, $sp, -32 + sd $ra, 24($sp) + jalr $25 + nop + ld $ra, 24($sp) + jr $ra + daddiu $sp, $sp, 32 -- cgit 1.4.1