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.
This commit is contained in:
Adhemerval Zanella 2024-01-16 13:07:47 -03:00
parent 926a4bdbb5
commit bcf2abd43b

View 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