mirror of
https://github.com/fluencelabs/musl
synced 2025-06-04 02:21:36 +00:00
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.
This commit is contained in:
parent
e8a0b27a71
commit
1e717ea3d2
@ -8,8 +8,9 @@ dlsym:
|
|||||||
move $6, $ra
|
move $6, $ra
|
||||||
lw $25, %call16(__dlsym)($gp)
|
lw $25, %call16(__dlsym)($gp)
|
||||||
addiu $sp, $sp, -16
|
addiu $sp, $sp, -16
|
||||||
jalr $25
|
|
||||||
sw $ra, 12($sp)
|
sw $ra, 12($sp)
|
||||||
|
jalr $25
|
||||||
|
nop
|
||||||
lw $ra, 12($sp)
|
lw $ra, 12($sp)
|
||||||
jr $ra
|
jr $ra
|
||||||
addiu $sp, $sp, 16
|
addiu $sp, $sp, 16
|
||||||
|
Loading…
x
Reference in New Issue
Block a user