From fa3eb7d5e7d32ca1ad48b48a7eb6d15b8382c3a7 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Mon, 5 Feb 2024 14:22:06 +0100 Subject: 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 --- debug/strcpy_chk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'debug') diff --git a/debug/strcpy_chk.c b/debug/strcpy_chk.c index e54780ddde..dd2c453417 100644 --- a/debug/strcpy_chk.c +++ b/debug/strcpy_chk.c @@ -31,3 +31,4 @@ __strcpy_chk (char *dest, const char *src, size_t destlen) return memcpy (dest, src, len + 1); } +libc_hidden_builtin_def (__strcpy_chk) -- cgit 1.4.1