glibc/sysdeps/ieee754/ldbl-128ibm-compat
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
e_scalbf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-argp-help.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-asprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-asprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-dprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-dprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-err.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-error.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fwprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fwprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-fwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc23_fscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_fwscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_scanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_sscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_swscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vfscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vfwscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vsscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vswscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_vwscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc23_wscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
ieee128-isoc99_fscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_fwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_scanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_sscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_swscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vfscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vfwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vsscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vswscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_vwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-isoc99_wscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-obprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-obstack_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-printf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-printf_size.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-printf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-qefgcvt_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-qefgcvt.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
ieee128-scanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-snprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-snprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-sprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-sprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-sscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-strfmon_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-strfmon.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-swprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-swprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-swscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-syslog.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vasprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vasprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vdprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vdprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfwprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfwprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vfwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vobstack_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vsnprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vsnprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vsprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vsprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vsscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vswprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vswprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vswscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vwprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vwprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-vwscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-wprintf_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-wprintf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee128-wscanf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libm-alias-float128.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makeconfig ldbl-128ibm-compat: Add tests for IBM long double functions 2020-03-06 09:17:32 -06:00
Makefile C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
math_ldbl.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
math-narrow-alias-float128.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_nextafterf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_nexttowardf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_significandf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
set-freeres-fp.h Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
strfromf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strtof128_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strtof128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-isoc99-scanf-ibm128.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
test-isoc99-scanf-ieee128.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
test-isoc99-wscanf-ibm128.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
test-isoc99-wscanf-ieee128.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
test-obstack-chk-ibm128.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-obstack-chk-ieee128.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-obstack-chk-ldbl-compat.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-obstack-ibm128.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-obstack-ieee128.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-obstack-ldbl-compat-template.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-obstack-ldbl-compat.c ldbl-128ibm-compat: Add obstack printing functions 2019-11-27 15:52:41 -03:00
test-printf-chk-ibm128.c ldbl-128ibm-compat: Add regular character, fortified printing functions 2019-11-22 18:11:49 -03:00
test-printf-chk-ieee128.c ldbl-128ibm-compat: Add regular character, fortified printing functions 2019-11-22 18:11:49 -03:00
test-printf-chk-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-printf-chk-redir-ibm128.c ldbl-128ibm-compat: Add regular character, fortified printing functions 2019-11-22 18:11:49 -03:00
test-printf-chk-redir-ieee128.c ldbl-128ibm-compat: Add regular character, fortified printing functions 2019-11-22 18:11:49 -03:00
test-printf-ibm128.c ldbl-128ibm-compat: Add regular character printing functions 2019-11-22 18:10:52 -03:00
test-printf-ieee128.c ldbl-128ibm-compat: Add regular character printing functions 2019-11-22 18:10:52 -03:00
test-printf-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-printf-size-ibm128.c ldbl-128ibm-compat: Add printf_size 2018-07-02 10:51:01 -03:00
test-printf-size-ieee128.c ldbl-128ibm-compat: Add printf_size 2018-07-02 10:51:01 -03:00
test-scanf-ibm128.c ldbl-128ibm-compat: Add regular character scanning functions 2019-11-22 18:13:01 -03:00
test-scanf-ieee128.c ldbl-128ibm-compat: Add regular character scanning functions 2019-11-22 18:13:01 -03:00
test-scanf-ldbl-compat-template.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-scanf-ldbl-compat.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
test-scanf-ldbl-compat.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-strfmon-ibm128.c ldbl-128ibm-compat: Add tests for strfmon and strfmon_l 2019-12-03 13:30:42 -03:00
test-strfmon-ieee128.c ldbl-128ibm-compat: Add tests for strfmon and strfmon_l 2019-12-03 13:30:42 -03:00
test-strfmon-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-strfrom-ibm128.c ldbl-128ibm-compat: Add tests for strfroml, strtold, and wcstold 2019-12-03 13:30:42 -03:00
test-strfrom-ieee128.c ldbl-128ibm-compat: Add tests for strfroml, strtold, and wcstold 2019-12-03 13:30:42 -03:00
test-strfrom-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-syslog-chk-ibm128.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-syslog-chk-ieee128.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-syslog-chk-ldbl-compat.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-syslog-ibm128.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-syslog-ieee128.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-syslog-ldbl-compat-template.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-syslog-ldbl-compat.c ldbl-128ibm-compat: Add syslog functions 2019-11-27 15:52:41 -03:00
test-wcstold-ibm128.c ldbl-128ibm-compat: Add tests for strfroml, strtold, and wcstold 2019-12-03 13:30:42 -03:00
test-wcstold-ieee128.c ldbl-128ibm-compat: Add tests for strfroml, strtold, and wcstold 2019-12-03 13:30:42 -03:00
test-wcstold-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-wprintf-chk-ibm128.c ldbl-128ibm-compat: Add wide character, fortified printing functions 2019-11-22 18:12:27 -03:00
test-wprintf-chk-ieee128.c ldbl-128ibm-compat: Add wide character, fortified printing functions 2019-11-22 18:12:27 -03:00
test-wprintf-chk-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-wprintf-chk-redir-ibm128.c ldbl-128ibm-compat: Add wide character, fortified printing functions 2019-11-22 18:12:27 -03:00
test-wprintf-chk-redir-ieee128.c ldbl-128ibm-compat: Add wide character, fortified printing functions 2019-11-22 18:12:27 -03:00
test-wprintf-ibm128.c ldbl-128ibm-compat: Add wide character printing functions 2019-11-22 18:11:38 -03:00
test-wprintf-ieee128.c ldbl-128ibm-compat: Add wide character printing functions 2019-11-22 18:11:38 -03:00
test-wprintf-ldbl-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-wscanf-ibm128.c ldbl-128ibm-compat: Add wide character scanning functions 2019-11-22 18:13:20 -03:00
test-wscanf-ieee128.c ldbl-128ibm-compat: Add wide character scanning functions 2019-11-22 18:13:20 -03:00
test-wscanf-ldbl-compat.c ldbl-128ibm-compat: Add ISO C99 versions of scanf functions 2019-12-13 18:02:09 -03:00
tst-ibm128-scanf-binary-c2x.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-scanf-binary-c11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-scanf-binary-gnu11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-scanf-binary-gnu89.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-wscanf-binary-c2x.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-wscanf-binary-c11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-wscanf-binary-gnu11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ibm128-wscanf-binary-gnu89.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-scanf-binary-c2x.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-scanf-binary-c11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-scanf-binary-gnu11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-scanf-binary-gnu89.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-wscanf-binary-c2x.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-wscanf-binary-c11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-wscanf-binary-gnu11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-ieee128-wscanf-binary-gnu89.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
Versions C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
w_scalbf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wcstof128_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wcstof128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00