]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sh: Fix static build with --enable-fortify
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 16 Jan 2024 16:07:47 +0000 (13:07 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Jan 2024 13:04:53 +0000 (10:04 -0300)
For static the internal symbols should not be prepended with the
internal __GI_.

Checked with a make check for sh4-linux-gnu.

sysdeps/unix/sysv/linux/sh/____longjmp_chk.S

index ede6551bccb374992f9065c9213d7cc29160853f..f61db0bc6380c1dd57a8bec8441c862fae13f3d6 100644 (file)
@@ -53,7 +53,7 @@ longjmp_msg:
 .Lstr:                                                 \
        .long   longjmp_msg@GOTOFF;                     \
 .Lfail:                                                        \
-       .long   __GI___fortify_fail@PLT-(.Lfail0-.);    \
+       .long   HIDDEN_JUMPTARGET(__fortify_fail)@PLT-(.Lfail0-.); \
        cfi_restore_state;
 #else
 # define CALL_FAIL \
@@ -70,7 +70,7 @@ longjmp_msg:
 .Lstr:                                                 \
        .long   longjmp_msg;                            \
 .Lfail:                                                        \
-       .long   __fortify_fail;                         \
+       .long   HIDDEN_JUMPTARGET(__fortify_fail);      \
        cfi_restore_state;
 #endif