From bc5f816a7a4038255ac55e47ae6c5ef13acb8a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 18 Sep 2024 03:18:42 +0200 Subject: 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. --- crt/mipsn32/crtn.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crt/mipsn32') diff --git a/crt/mipsn32/crtn.s b/crt/mipsn32/crtn.s index dccd7e89..0679eac3 100644 --- a/crt/mipsn32/crtn.s +++ b/crt/mipsn32/crtn.s @@ -2,11 +2,11 @@ .section .init ld $gp, 16($sp) ld $ra, 24($sp) - j $ra + jr $ra addu $sp, $sp, 32 .section .fini ld $gp, 16($sp) ld $ra, 24($sp) - j $ra + jr $ra addu $sp, $sp, 32 -- cgit v1.2.1