]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
mips: Fix delay slot filling in bsd-setjmp.S
authorJovan Dmitrovic <jovan.dmitrovic@htecgroup.com>
Wed, 3 Sep 2025 13:53:39 +0000 (13:53 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 23 Sep 2025 13:29:24 +0000 (10:29 -0300)
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 <adhemerval.zanella@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
sysdeps/mips/bsd-setjmp.S

index b8f5ef6ca78c1abf3c1471f5e5594aa9072ad03a..4d638216d22a56be771a32eeef22d0a21b6658dd 100644 (file)
@@ -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)