glibc/locale
Adhemerval Zanella Netto 88677348b4 Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions
They are both used by __libc_freeres to free all library malloc
allocated resources to help tooling like mtrace or valgrind with
memory leak tracking.

The current scheme uses assembly markers and linker script entries
to consolidate the free routine function pointers in the RELRO segment
and to be freed buffers in BSS.

This patch changes it to use specific free functions for
libc_freeres_ptrs buffers and call the function pointer array directly
with call_function_static_weak.

It allows the removal of both the internal macros and the linker
script sections.

Checked on x86_64-linux-gnu, i686-linux-gnu, and aarch64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2023-03-27 13:57:55 -03:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
programs locale: Use correct buffer size for utf8_sequence_error [BZ #19444] 2023-01-11 17:50:12 -03:00
tst-localedef-path-norm.root localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C_name.c
C-address.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-collate-seq.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-name.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
C-translit.h.in Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
categories.def Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gen-translit.py Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
global-locale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hashval.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
indigits.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iso-639.def Add rif_MA locale [BZ #27781] 2022-04-07 14:59:41 +02:00
iso-3166.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iso-4217.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
langinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
loadarchive.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
loadlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
locale.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localeinfo.h Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
localename.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setlocale.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
strlen-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
SYS_libc.c [BZ #284, BZ #721] 2005-02-17 01:19:55 +00:00
tst-C-locale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-duplocale.c Add missing test files. 2009-11-17 16:23:57 -08:00
tst-locale-locpath.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-localedef-path-norm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-locname.c Add missing test files. 2009-11-17 16:23:57 -08:00
uselocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions C2x strtol binary constant handling 2023-02-16 23:02:40 +00:00
weight.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
weightwc.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xlocale.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00