musl/crt/mipsn32/crtn.s
Alex Rønne Petersen bc5f816a7a 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.
2024-10-22 18:58:02 -04:00

13 lines
168 B
ArmAsm

.set noreorder
.section .init
ld $gp, 16($sp)
ld $ra, 24($sp)
jr $ra
addu $sp, $sp, 32
.section .fini
ld $gp, 16($sp)
ld $ra, 24($sp)
jr $ra
addu $sp, $sp, 32