glibc/nscd
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
..
aicache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cachedumper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
connections.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
dbg_log.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dbg_log.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
gai.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
getgrnam_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gethstbyad_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gethstbynm3_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpwnam_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpwuid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grpcache.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
hstcache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
initgrcache.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
mem.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
netgroupcache.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
nscd_conf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_getai.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_getgr_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_gethst_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_getpw_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_getserv_r.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_helper.c nscd: Remove _STRING_ARCH_unaligned usage 2023-02-17 15:56:54 -03:00
nscd_initgroups.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_netgroup.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
nscd_proto.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_setup_thread.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd_stat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd-client.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
nscd.conf nscd: Improve nscd.conf comments. 2019-08-19 09:57:58 -04:00
nscd.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nscd.init . 2007-07-31 13:33:18 +00:00
nscd.service nscd: also invalidate netgroup cache on reload 2014-03-19 14:45:10 +01:00
nscd.tmpfiles Add systemd unit file for nscd 2013-12-16 11:22:01 +10:00
pwdcache.c Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
res_hconf.c [BZ #4814] 2007-08-22 03:14:29 +00:00
selinux.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
selinux.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
servicescache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00