Procházet zdrojové kódy

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.
Rich Felker před 12 roky
rodič
revize
1e717ea3d2
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/ldso/mips/dlsym.s

+ 2 - 1
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