musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年11月08日 14:31:49 -0500
committerRich Felker <dalias@aerifal.cx>2012年11月08日 14:31:49 -0500
commit1e717ea3d2a864e00e507f1a70a892c551955f1b (patch)
tree9abf17c9668217f94b8fd5d390e2dd2231d51f1f
parente8a0b27a7101f5b9939de83df3d6d8b606c5678b (diff)
downloadmusl-1e717ea3d2a864e00e507f1a70a892c551955f1b.tar.gz
fix dlsym asm for mips
saving the return address from the delay slot is not valid -- by the time the instruction executes, the return address has already been replaced.
Diffstat
-rw-r--r--src/ldso/mips/dlsym.s 3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldso/mips/dlsym.s b/src/ldso/mips/dlsym.s
index b1ea98be..c57b9729 100644
--- a/src/ldso/mips/dlsym.s
+++ b/src/ldso/mips/dlsym.s
@@ -8,8 +8,9 @@ dlsym:
move 6,ドル $ra
lw 25,ドル %call16(__dlsym)($gp)
addiu $sp, $sp, -16
- jalr 25ドル
sw $ra, 12($sp)
+ jalr 25ドル
+ nop
lw $ra, 12($sp)
jr $ra
addiu $sp, $sp, 16
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 22:35:43 +0000

AltStyle によって変換されたページ (->オリジナル) /