From: Adhemerval Zanella Date: Tue, 16 Jan 2024 16:07:47 +0000 (-0300) Subject: sh: Fix static build with --enable-fortify X-Git-Tag: glibc-2.39~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcf2abd43bbe6ffdd8b6a1e1e36cc67a9769e508;p=thirdparty%2Fglibc.git 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. --- diff --git a/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S b/sysdeps/unix/sysv/linux/sh/____longjmp_chk.S index ede6551bccb..f61db0bc638 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