aboutsummaryrefslogtreecommitdiff
path: root/debug/memset_chk.c
diff options
context:
space:
mode:
authorFrédéric Bérat <fberat@redhat.com>2023-04-20 14:07:52 +0200
committerFrédéric Bérat <fberat@redhat.com>2023-07-05 16:59:48 +0200
commitdd8486ffc195f5fe150b2d3724c7712686cfddb0 (patch)
tree8c6a24a94d1884b92f9b48536b39847110a23564 /debug/memset_chk.c
parentba96ff24b253d0321508b8b462103bbaa2975bb5 (diff)
downloadglibc-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 'debug/memset_chk.c')
-rw-r--r--debug/memset_chk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/memset_chk.c b/debug/memset_chk.c
index 4fc0b55d82..93901f5f34 100644
--- a/debug/memset_chk.c
+++ b/debug/memset_chk.c
@@ -26,3 +26,4 @@ __memset_chk (void *dstpp, int c, size_t len, size_t dstlen)
return memset (dstpp, c, len);
}
+libc_hidden_builtin_def (__memset_chk)