projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fee5f9
)
dlsym RTLD_NEXT support for mips
author
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 19:39:12 +0000
(15:39 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 5 Aug 2012 19:39:12 +0000
(15:39 -0400)
untested
src/ldso/mips/dlsym.s
[new file with mode: 0644]
patch
|
blob
diff --git a/src/ldso/mips/dlsym.s
b/src/ldso/mips/dlsym.s
new file mode 100644
(file)
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