glibc/rt
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
aio_cancel.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_error.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_fsync.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_misc.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
aio_notify.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_read64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_read.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_return.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_sigqueue.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_suspend.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_write64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_write.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend
librt-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lio_listio64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lio_listio-common.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lio_listio.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
mq_close.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_getattr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_notify.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_open.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_receive.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_send.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_setattr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_timedreceive.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_timedsend.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mq_unlink.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shm_open.c rt: fix shm_open not set ENAMETOOLONG when name exceeds {_POSIX_PATH_MAX} 2023-03-08 10:11:54 -03:00
shm_unlink.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_create.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_delete.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_getoverr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_gettime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timer_settime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio6-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-aio6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio7.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio8.c
tst-aio9.c
tst-aio10.c
tst-aio64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-aio.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-bz28213.c Fix The GNU ToolChain Authors copyright notice 2021-12-17 07:59:45 +05:30
tst-cpuclock2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-cpuclock2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cputimer1.c
tst-cputimer2.c
tst-cputimer3.c
tst-mqueue1-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue4-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue7.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue8-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mqueue8.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue9.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue10-time64.c linux: Only use 64-bit syscall if required for mq_timedreceive 2021-06-22 12:09:52 -03:00
tst-mqueue10.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mqueue.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-shm-cancel.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-shm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-timer2.c
tst-timer3.c
tst-timer4-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-timer4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-timer5.c
tst-timer-sigmask.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-timer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions Linux: Cleanups after librt move 2021-06-28 09:51:01 +02:00