From: Rich Felker Date: Thu, 8 Nov 2012 19:31:49 +0000 (-0500) Subject: fix dlsym asm for mips X-Git-Tag: v0.9.8~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e717ea3d2a864e00e507f1a70a892c551955f1b;p=oweals%2Fmusl.git 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. --- 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