From 70d45632ad0036d969b75df90c169683c1ab1e87 Mon Sep 17 00:00:00 2001 From: Jovan Dmitrovic Date: Wed, 3 Sep 2025 13:53:39 +0000 Subject: [PATCH] mips: Fix delay slot filling in bsd-setjmp.S MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the !defined __PIC__ case, we cannot guarantee that the delay slot is properly filled at the final `j` instuction without reordering active. Reviewed-by: Adhemerval Zanella Reviewed-by: Philippe Mathieu-Daudé --- sysdeps/mips/bsd-setjmp.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mips/bsd-setjmp.S b/sysdeps/mips/bsd-setjmp.S index b8f5ef6ca7..4d638216d2 100644 --- a/sysdeps/mips/bsd-setjmp.S +++ b/sysdeps/mips/bsd-setjmp.S @@ -28,8 +28,8 @@ .option pic2 #endif ENTRY (setjmp) - .set noreorder #ifdef __PIC__ + .set noreorder .cpload t9 .set reorder la t9, C_SYMBOL_NAME (__sigsetjmp)