From 04bf7d2d8a79bf8d06ca811518688ccda190b376 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 3 Aug 2023 21:16:41 +0200 Subject: chk: Add and fix hidden builtin definitions for *_chk Otherwise on gnu-i686 there are unwanted PLT entries in libc.so when fortification is enabled. Tested for i686-gnu, x86_64-gnu, i686-linux-gnu and x86_64-linux-gnu --- include/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index 659530d1aa..86d1fa4abe 100644 --- a/include/string.h +++ b/include/string.h @@ -214,6 +214,7 @@ libc_hidden_builtin_proto (__memmove_chk) libc_hidden_builtin_proto (__mempcpy_chk) libc_hidden_builtin_proto (__memset_chk) libc_hidden_builtin_proto (__stpcpy_chk) +libc_hidden_builtin_proto (__strncpy_chk) #endif -- cgit v1.2.3