glibc/grp
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
..
tst-initgroups1.root/etc nsswitch: handle missing actions properly 2020-12-14 12:19:43 -05:00
tst-initgroups2.root/etc nsswitch: handle missing actions properly 2020-12-14 12:19:43 -05:00
compat-initgroups.c nsswitch: use new internal API (callers) 2020-12-04 17:16:32 -05:00
fgetgrent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fgetgrent.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
getgrent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrgid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrgid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrnam_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getgrnam.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grp-merge.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grp-merge.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grp.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
initgroups.c 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
putgrent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setgroups.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
testgrp.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
tst_fgetgrent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst_fgetgrent.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-initgroups1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-initgroups2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-putgrent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions NSS: Implement group merging support. 2016-04-29 22:18:21 -04:00