]> git.ipfire.org Git - thirdparty/glibc.git/commit
string: Add hidden builtin definition for __strcpy_chk.
authorStefan Liebler <stli@linux.ibm.com>
Mon, 5 Feb 2024 13:22:06 +0000 (14:22 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Tue, 6 Feb 2024 08:17:04 +0000 (09:17 +0100)
commitfa3eb7d5e7d32ca1ad48b48a7eb6d15b8382c3a7
tree8e27c39601591c096173b9675866996c7f46df22
parent1e25112dc0cb2515d27d8d178b1ecce778a9d37a
string: Add hidden builtin definition for __strcpy_chk.

Otherwise on at least x86_64 and s390x there is an unwanted PLT entry
in libc.so when configured with --enable-fortify-source=3 and build
with -Os.

This is observed in elf/check-localplt
Extra PLT reference: libc.so: __strcpy_chk

The call to PLT entry is in inet/ruserpass.c.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
debug/strcpy_chk.c
include/string.h