about summary refs log tree commit diff
path: root/debug/wcrtomb_chk.c
diff options
context:
space:
mode:
authorFrédéric Bérat <fberat@redhat.com>2023-06-07 11:06:50 +0200
committerFrédéric Bérat <fberat@redhat.com>2023-07-05 16:59:48 +0200
commit64f9857507f6dbf9715350b75e83b465be9b8f03 (patch)
treeb176a051eb3b8de0c0969766edc8dc1d889946d4 /debug/wcrtomb_chk.c
parenteea000f6e69a829425fae25a7c2519f5c79551de (diff)
downloadglibc-64f9857507f6dbf9715350b75e83b465be9b8f03.tar.gz
glibc-64f9857507f6dbf9715350b75e83b465be9b8f03.tar.xz
glibc-64f9857507f6dbf9715350b75e83b465be9b8f03.zip
wchar: Avoid PLT entries with _FORTIFY_SOURCE
The change is meant to avoid unwanted PLT entries for the wmemset and
wcrtomb routines when _FORTIFY_SOURCE is set.

On top of that, ensure that *_chk routines have their hidden builtin
definitions available.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug/wcrtomb_chk.c')
-rw-r--r--debug/wcrtomb_chk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/wcrtomb_chk.c b/debug/wcrtomb_chk.c
index 657be7471d..c156fe09c1 100644
--- a/debug/wcrtomb_chk.c
+++ b/debug/wcrtomb_chk.c
@@ -28,3 +28,4 @@ __wcrtomb_chk (char *s, wchar_t wchar, mbstate_t *ps, size_t buflen)
 {
   return __wcrtomb_internal (s, wchar, ps, buflen);
 }
+libc_hidden_def (__wcrtomb_chk)