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.
13 lines
168 B
ArmAsm
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
|