glibc/login
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
..
programs Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
endutxent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
forkpty.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getlogin_r_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getlogin_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getlogin.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutent.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
getutid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutid.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
getutline_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutline.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
getutmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutmpx.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutxent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutxid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getutxline.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grantpt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lastlog.h Update. 1997-06-21 02:59:26 +00:00
libutil-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
login_tty.c login: Move libutil into libc 2021-06-30 08:43:37 +02:00
login.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
logout.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
logwtmp.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
openpty.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ptsname_r_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ptsname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pty.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pututxline.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setlogin.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setutxent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-getlogin.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-grantpt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ptsname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-pututxline-cache.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-pututxline-lockfail.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-updwtmpx.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-utmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-utmpx.c Update. 1998-06-02 12:58:14 +00:00
unlockpt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
updwtmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
updwtmpx.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmp_file.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmp-private.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmp.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmpname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmpxname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions login: Move libutil into libc 2021-06-30 08:43:37 +02:00