diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-04-20 14:07:52 +0200 |
---|---|---|
committer | Frédéric Bérat <fberat@redhat.com> | 2023-07-05 16:59:48 +0200 |
commit | dd8486ffc195f5fe150b2d3724c7712686cfddb0 (patch) | |
tree | 8c6a24a94d1884b92f9b48536b39847110a23564 /include | |
parent | ba96ff24b253d0321508b8b462103bbaa2975bb5 (diff) | |
download | glibc-dd8486ffc195f5fe150b2d3724c7712686cfddb0.tar.gz glibc-dd8486ffc195f5fe150b2d3724c7712686cfddb0.tar.xz glibc-dd8486ffc195f5fe150b2d3724c7712686cfddb0.zip |
string: Ensure *_chk routines have their hidden builtin definition available
If libc_hidden_builtin_{def,proto} isn't properly set for *_chk routines, there are unwanted PLT entries in libc.so. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index 0c78ad2539..659530d1aa 100644 --- a/include/string.h +++ b/include/string.h @@ -208,6 +208,13 @@ extern char *__strcat_chk (char *__restrict __dest, extern char *__strncat_chk (char *__restrict __dest, const char *__restrict __src, size_t __len, size_t __destlen) __THROW; + +libc_hidden_builtin_proto (__memcpy_chk) +libc_hidden_builtin_proto (__memmove_chk) +libc_hidden_builtin_proto (__mempcpy_chk) +libc_hidden_builtin_proto (__memset_chk) +libc_hidden_builtin_proto (__stpcpy_chk) + #endif #endif |