aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-16 13:07:47 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-22 10:04:53 -0300
commitbcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508 (patch)
tree662cf5127670b3edd8491f764b8c149f4ecc33fb
parent926a4bdbb5fc8955570208b5571b2d04c6ffbd1d (diff)
downloadglibc-bcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508.tar
glibc-bcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508.tar.gz
glibc-bcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508.tar.bz2
glibc-bcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508.zip
sh: Fix static build with --enable-fortify
For static the internal symbols should not be prepended with the internal __GI_. Checked with a make check for sh4-linux-gnu.
-rw-r--r--sysdeps/unix/sysv/linux/sh/____longjmp_chk.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S b/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
index ede6551bcc..f61db0bc63 100644
--- a/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
+++ b/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S
@@ -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