glibc/sunrpc
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
..
rpc Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
auth_des.c
auth_none.c
auth_unix.c
authdes_prot.c
authuxprot.c
clnt_gen.c
clnt_perr.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
clnt_raw.c
clnt_simp.c
clnt_tcp.c
clnt_udp.c
clnt_unix.c
create_xid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
des_crypt.c
des_impl.c
des_soft.c
get_myaddr.c
getrpcport.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
key_call.c
key_prot.c
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
netname.c sunrpc: Suppress GCC -O1 warning on user2netname [BZ #19444] 2023-01-11 17:50:25 -03:00
openchild.c
pm_getmaps.c
pm_getport.c
pmap_clnt.c
pmap_prot2.c
pmap_prot.c
pmap_rmt.c
publickey.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rpc_cmsg.c
rpc_common.c
rpc_dtable.c
rpc_gethostbyname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rpc_prot.c
rpc_thread.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
rtime.c
svc_auth.c
svc_authux.c
svc_raw.c
svc_run.c
svc_simple.c
svc_tcp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
svc_udp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
svc_unix.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
svc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
svcauth_des.c
test-rpcent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
thrsvc.c
tst-bug22542.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-bug28768.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-getmyaddr.c
tst-svc_register.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
tst-udp-error.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-udp-garbage.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-udp-nonblocking.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-udp-timeout.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-xdrmem2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-xdrmem.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions
xcrypt.c
xdr_array.c
xdr_float.c
xdr_intXX_t.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xdr_mem.c
xdr_rec.c
xdr_ref.c
xdr_sizeof.c
xdr_stdio.c
xdr.c