wchar: Avoid PLT entries with _FORTIFY_SOURCE
authorFrédéric Bérat <fberat@redhat.com>
Wed, 7 Jun 2023 09:06:50 +0000 (11:06 +0200)
committerFrédéric Bérat <fberat@redhat.com>
Wed, 5 Jul 2023 14:59:48 +0000 (16:59 +0200)
commit64f9857507f6dbf9715350b75e83b465be9b8f03
treeb176a051eb3b8de0c0969766edc8dc1d889946d4
parenteea000f6e69a829425fae25a7c2519f5c79551de
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>
debug/wcrtomb_chk.c
debug/wmemset_chk.c
include/wchar.h
sysdeps/x86_64/multiarch/wmemset_chk.c
wcsmbs/bits/wchar2-decl.h