]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio: Split __get_errname definition from errlist.c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 6 Apr 2022 14:46:46 +0000 (11:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 15 Apr 2022 12:37:57 +0000 (09:37 -0300)
commit592b6d00aaaf435efd687e99b5985852dffb4c80
tree4ba30afd54e0d77981ae7ab93ac5f5859725c620
parent26b2478322db94edc9e0e8f577b2f71d291e5acb
stdio: Split __get_errname definition from errlist.c

The loader does not need to pull all __get_errlist definitions
and its size is decreased:

Before:
$ size elf/ld.so
   text    data     bss     dec     hex filename
 197774   11024     456  209254   33166 elf/ld.so

After:
$ size elf/ld.so
   text    data     bss     dec     hex filename
 191510    9936     456  201902   314ae elf/ld.so

Checked on x86_64-linux-gnu.
stdio-common/Makefile
stdio-common/errlist.c
stdio-common/errname.c [new file with mode: 0644]
sysdeps/mach/hurd/errname.c [new file with mode: 0644]