glibc/intl
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
..
bindtextdom.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dcgettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dcigettext.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
dcngettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend
dgettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dngettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
eval-plural.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
explodename.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
finddomain.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gettextP.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gmo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hash-string.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hash-string.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
l10nflist.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libintl.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
loadinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
loadmsgcat.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
locale.alias Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localealias.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ngettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
plural-exp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
plural-exp.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
plural.y Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
po2test.awk Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
textdomain.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
translit.po
tst-codeset.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext2.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext4-de.po
tst-gettext4-fr.po
tst-gettext4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext4.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext6.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gettext.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ngettext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-translit.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-translit.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tstcodeset.po
tstlang1.po
tstlang2.po
Versions