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/mips64/crtn.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crt/mips64/crtn.s') diff --git a/crt/mips64/crtn.s b/crt/mips64/crtn.s index f3930b24..8f090ed3 100644 --- a/crt/mips64/crtn.s +++ b/crt/mips64/crtn.s @@ -3,11 +3,11 @@ .section .init ld $gp,16($sp) ld $ra,24($sp) - j $ra + jr $ra daddu $sp,$sp,32 .section .fini ld $gp,16($sp) ld $ra,24($sp) - j $ra + jr $ra daddu $sp,$sp,32 -- cgit v1.2.1