[PATCH v3 6/6] mips: Fix delay slot filling in bsd-setjmp.S
Jovan Dmitrovic
jovan.dmitrovic@htecgroup.com
Wed Sep 3 13:53:39 GMT 2025
In the !defined __PIC__ case, we cannot guarantee that the delay slot
is properly filled at the final `j` instuction without reordering
active.
---
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)
--
2.34.1
More information about the Libc-alpha
mailing list