glibc/time
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/types
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend
Makefile Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
Versions
adjtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
alt_digit.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
asctime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
bug-asctime.c
bug-asctime_r.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c
clock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_getcpuclockid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_getres.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_settime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clocktest.c
ctime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ctime_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
datemsk
difftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dysize.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
era.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getdate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getitimer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gmtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lc-time-cleanup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
localtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mktime-internal.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mktime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
offtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setitimer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
settimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
settimezone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
stime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strftime_l.c Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
strptime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strptime_l.c Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
test_time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
time.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timegm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timespec_get.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
timespec_getres.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-adjtime-time64.c
tst-adjtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-clock-time64.c
tst-clock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-clock2-time64.c
tst-clock2.c
tst-clock_nanosleep-time64.c
tst-clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-clock_settime-time64.c
tst-clock_settime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cpuclock1-time64.c
tst-cpuclock1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ctime-time64.c
tst-ctime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-difftime-time64.c
tst-difftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ftime_l.c
tst-getdate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gmtime-time64.c
tst-gmtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-itimer-time64.c
tst-itimer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-mktime.c
tst-mktime2.c
tst-mktime3.c
tst-mktime4-time64.c
tst-mktime4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-posixtz.c
tst-settimeofday-time64.c
tst-settimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strftime.c Use '%z' instead of '%Z' on printf functions 2022-09-22 08:48:04 -03:00
tst-strftime2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strftime3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strftime4-time64.c Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
tst-strftime4.c Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
tst-strptime-whitespace.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strptime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strptime2.c
tst-strptime3.c
tst-timegm-time64.c
tst-timegm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-timespec_get-time64.c
tst-timespec_get.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-timespec_getres-time64.c
tst-timespec_getres.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-tzname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-y2039-time64.c
tst-y2039.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst_wcsftime.c
tzfile.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
tzset.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
wcsftime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wcsftime_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00