summaryrefslogtreecommitdiff
path: root/crt/mips
diff options
context:
space:
mode:
authorAlex Rønne Petersen <[email protected]>2024-09-18 03:18:42 +0200
committerRich Felker <[email protected]>2024-10-22 18:58:02 -0400
commitbc5f816a7a4038255ac55e47ae6c5ef13acb8a85 (patch)
treece0a6ebb7713b3bf566c7aa1436811856a6502bb /crt/mips
parent4e6c827cf48aa4277033d3444e419cb435b0a68c (diff)
downloadmusl-bc5f816a7a4038255ac55e47ae6c5ef13acb8a85.tar.gz
mips: use preferred asm mnemomic jr for better assembler compatibility
The LLVM assembler reportedly assembles the form using the j mnemonic incorrectly (see issue 107460). The jr form is canonical and avoids this problem, so use it instead.
Diffstat (limited to 'crt/mips')
-rw-r--r--crt/mips/crtn.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/crt/mips/crtn.s b/crt/mips/crtn.s
index 506a04b7..92eb3d0e 100644
--- a/crt/mips/crtn.s
+++ b/crt/mips/crtn.s
@@ -3,11 +3,11 @@
.section .init
lw $gp,24($sp)
lw $ra,28($sp)
- j $ra
+ jr $ra
addu $sp,$sp,32
.section .fini
lw $gp,24($sp)
lw $ra,28($sp)
- j $ra
+ jr $ra
addu $sp,$sp,32
OSZAR »