This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18822] Internal functions are called via PLT
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 01 Oct 2017 01:14:56 +0000
- Subject: [Bug libc/18822] Internal functions are called via PLT
- Auto-submitted: auto-generated
- References: <bug-18822-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18822
--- Comment #68 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr18822 has been created
at 2c668a5c126c66f9ee4164730e805f36278a4b20 (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2c668a5c126c66f9ee4164730e805f36278a4b20
commit 2c668a5c126c66f9ee4164730e805f36278a4b20
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 05:56:32 2017 -0700
Hide internal fadvise64/fallocate64 functions [BZ #18822]
Hide internal fadvise64/fallocate64 functions to allow direct access
within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/posix_fadvise64.c
(__posix_fadvise64_l64): Add Add libc_hidden_proto and
libc_hidden_def.
* sysdeps/unix/sysv/linux/posix_fallocate64.c
(__posix_fallocate64_l64): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=76687f844dd983b09df9306aa3527564ebb431c9
commit 76687f844dd983b09df9306aa3527564ebb431c9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 05:45:40 2017 -0700
Hide internal __sched_setaffinity_new function [BZ #18822]
Hide internal __sched_setaffinity_new function to allow direct access
within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/sched_setaffinity.c
(__sched_setaffinity_new): Add libc_hidden_proto and
libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=36756b2e9f73e77d2e65488080f61494eca65bc0
commit 36756b2e9f73e77d2e65488080f61494eca65bc0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 05:38:44 2017 -0700
Hide internal __glob64 function [BZ #18822]
Hide internal __glob64 function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/glob.h (__glob64): Add libc_hidden_proto.
* sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=53d1a65b2e2833cc59c1172b8db6a6dcd0c6f87b
commit 53d1a65b2e2833cc59c1172b8db6a6dcd0c6f87b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 05:09:53 2017 -0700
Hide internal __new_getrlimit function [BZ #18822]
Hide internal __new_getrlimit function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e6515ab253f55cfe5535b5e4e4779ded7acb3d11
commit e6515ab253f55cfe5535b5e4e4779ded7acb3d11
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 05:03:51 2017 -0700
Hide internal __new_exitfn function [BZ #18822]
Hide internal __new_exitfn function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* stdlib/exit.h (__new_exitfn): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=398f6e35fec61ce55b1092a00ede6f7323e1d834
commit 398f6e35fec61ce55b1092a00ede6f7323e1d834
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 31 04:58:36 2017 -0700
Hide internal __moncontrol function [BZ #18822]
Hide internal __moncontrol function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* mon/gmon.c (__moncontrol): Add libc_hidden_proto and
libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a14e4b011d5dd4f9858b7bb558ab0f46e98a4b1d
commit a14e4b011d5dd4f9858b7bb558ab0f46e98a4b1d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 08:41:32 2017 -0700
Hide internal __libc_print_version function [BZ #18822]
Hide internal __libc_print_version function to allow direct access
within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* csu/version.c (__libc_print_version): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c613781146f4fd2dc3a2dea39b416cd7cfab34e9
commit c613781146f4fd2dc3a2dea39b416cd7cfab34e9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 08:40:40 2017 -0700
Hide internal __init_misc function [BZ #18822]
Hide internal __init_misc function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/libc-internal.h (__init_misc): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6d3a328f997e3a5157aaa148c0c0408506871afa
commit 6d3a328f997e3a5157aaa148c0c0408506871afa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 08:39:40 2017 -0700
Hide internal __setfpucw function [BZ #18822]
Hide internal __setfpucw function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/fpu_control.h (__setfpucw): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ad9f88c3cfa0848e4074ccd87d6f93e468939437
commit ad9f88c3cfa0848e4074ccd87d6f93e468939437
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 08:38:13 2017 -0700
Hide internal __nis_hash function [BZ #18822]
Hide internal __nis_hash function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* nscd/nscd_helper.c (__nis_hash): New prototype.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3afe5949af31a5028e41d6b1b172138789cd40cb
commit 3afe5949af31a5028e41d6b1b172138789cd40cb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 08:35:33 2017 -0700
Hide internal __tcgetattr function [BZ #18822]
Hide internal __tcgetattr function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/termios.h (__tcgetattr): Add libc_hidden_proto.
* sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
* termios/tcgetattr.c (__tcgetattr): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=95f58a3f75d55bff60154b4bb70b3cc5d3945609
commit 95f58a3f75d55bff60154b4bb70b3cc5d3945609
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 06:42:46 2017 -0700
Hide internal __setrlimit function [BZ #18822]
Hide internal __setrlimit function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
* resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
* sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
* sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=22355d035fde56486fa847c405f318e2c24aa454
commit 22355d035fde56486fa847c405f318e2c24aa454
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 06:41:49 2017 -0700
Hide internal __vstrfmon_l function [BZ #18822]
Hide internal __vstrfmon_l function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/monetary.h (__vstrfmon_l): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=92a24006e4765bef48bb0f238805d2d3c38d4ff2
commit 92a24006e4765bef48bb0f238805d2d3c38d4ff2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 06:25:16 2017 -0700
Hide internal __sched_setparam function [BZ #18822]
Hide internal __sched_setparam function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
__GI___sched_setparam is defined when sysdeps/unix/syscalls.list is
used to generate sched_setparam. Otherwise libc_hidden_def is needed
explicitly.
[BZ #18822]
* include/sched.h (__sched_setparam): Add libc_hidden_proto.
* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c2bc3017e5b905ec98183395ab3a39249cc705af
commit c2bc3017e5b905ec98183395ab3a39249cc705af
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 05:51:51 2017 -0700
Hide internal __hash_string function [BZ #18822]
Hide internal __hash_string function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* intl/hash-string.h (__hash_string): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0f0e100902b0006fb7f9c97687a1340f577d92af
commit 0f0e100902b0006fb7f9c97687a1340f577d92af
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 05:50:09 2017 -0700
Hide internal __hasmntopt function [BZ #18822]
Hide internal __hasmntopt function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/mntent.h (__hasmntopt): Add libc_hidden_proto.
* misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=083282849c4b6561cbe25e2c18191674f1eba44c
commit 083282849c4b6561cbe25e2c18191674f1eba44c
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 05:43:49 2017 -0700
Hide internal __ifreq function [BZ #18822]
Hide internal __ifreq function to allow direct access within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* include/ifreq.h: New file.
* sysdeps/generic/ifreq.h (__if_nextreq): Removed.
(__ifreq): Likewise.
* sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
(__ifreq): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5b1cd47a56bc9ac82170caa776a5f461cca3ac0f
commit 5b1cd47a56bc9ac82170caa776a5f461cca3ac0f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 22 04:50:04 2017 -0700
Hide internal idna functions [BZ #18822]
Hide internal idna functions to allow direct access within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* include/idna.h: New file.
* inet/getnameinfo.c: Include <idna.h> instead of
<libidn/idna.h>.
(__idna_to_unicode_lzlz): Removed.
* sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
<libidn/idna.h>.
(__idna_to_ascii_lz): Removed.
(__idna_to_unicode_lzlz): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1b18d31f4b338d9c1f98a7a207ca86a322e42014
commit 1b18d31f4b338d9c1f98a7a207ca86a322e42014
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 10:39:50 2017 -0700
Hide internal __gettextparse function [BZ #18822]
Hide internal __gettextparse function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/plural-exp.h: New file.
* intl/plural-exp.c: Include <plural-exp.h> instead of
"plural-exp.h".
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fcd6350605ca490df1d9f06895252edad52f6457
commit fcd6350605ca490df1d9f06895252edad52f6457
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 10:20:45 2017 -0700
Hide internal __get_sol function [BZ #18822]
Hide internal __get_sol function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/getsourcefilter.c: Include
"getsourcefilter.h".
* sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
* sysdeps/unix/sysv/linux/setsourcefilter.c: Include
"getsourcefilter.h".
(__get_sol): Removed.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=60c12c4a59b9e41a20fe959a6f02fb0a579e4f81
commit 60c12c4a59b9e41a20fe959a6f02fb0a579e4f81
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 10:11:21 2017 -0700
Move hidden_proto (__dl_iterate_phdr) to include/link.h [BZ #18822]
[BZ #18822]
* elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
to ...
* include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8f1995c2955a07ca657d7c22ea58fcd86acdf835
commit 8f1995c2955a07ca657d7c22ea58fcd86acdf835
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 10:07:55 2017 -0700
Hide internal __bsd_getpt function [BZ #18822]
Hide internal __bsd_getpt function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=01b30e390481dcc3f11be36c2485448ce2b1e5d1
commit 01b30e390481dcc3f11be36c2485448ce2b1e5d1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 09:20:06 2017 -0700
Hide internal __fopen_maybe_mmap function [BZ #18822]
Hide internal __fopen_maybe_mmap function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4c15d7c23f8aa81687a0ef5add1a71bca1dd30df
commit 4c15d7c23f8aa81687a0ef5add1a71bca1dd30df
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 09:18:36 2017 -0700
Hide internal __tdestroy function [BZ #18822]
Hide internal __tdestroy function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/search.h (__tdestroy): Add libc_hidden_proto.
* misc/tsearch.c (__tdestroy): Add libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ab6c45c1e1e0015ed671879774e7d942291e3d7
commit 8ab6c45c1e1e0015ed671879774e7d942291e3d7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 09:17:07 2017 -0700
Hide internal __assert_fail_base function [BZ #18822]
Hide internal __assert_fail_base function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/assert.h (__assert_fail_base): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3b754ea5d07c744f23b509826668b7607246fea8
commit 3b754ea5d07c744f23b509826668b7607246fea8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 09:15:33 2017 -0700
Hide internal __sysinfo function [BZ #18822]
Hide internal __sysinfo function to allow direct access within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=68076640718d72cc40b3635c1031cbceb514e21d
commit 68076640718d72cc40b3635c1031cbceb514e21d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 08:17:57 2017 -0700
Hide internal signal functions [BZ #18822]
Hide internal signal functions to allow direct access within libc.so and
libc.a without using GOT nor PLT.
__GI___kill and __GI___sigaltstack are defined when syscalls.list is
used to generate them. Otherwise libc_hidden_def is needed explicitly.
[BZ #18822]
* include/signal.h (__kill): Add libc_hidden_proto.
(__sigblock): Likewise.
(__sigprocmask): Likewise.
(__sigaltstack): Likewise.
* signal/kill.c (__kill): Add libc_hidden_def.
* signal/sigblock.c (__sigblock): Likewise.
* signal/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/mach/hurd/kill.c (__kill): Likewise.
* sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
* sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/posix/sigblock.c (__sigblock): Likewise.
* sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
Likewise.
* sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
(__sigprocmask): Likewise.
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
Likewise.
* /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
(__sigprocmask): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4cd6128f473d4db7bbc71de6b0d3b0a9871db5fa
commit 4cd6128f473d4db7bbc71de6b0d3b0a9871db5fa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 08:07:16 2017 -0700
Hide internal __strsep function [BZ #18822]
Hide internal __strsep function to allow direct access within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* include/string.h (__strsep): Add libc_hidden_proto.
* string/strsep.c (__strsep): Add libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dedfbdfec414f973b8c96a5430be9feb9d473f9e
commit dedfbdfec414f973b8c96a5430be9feb9d473f9e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 06:24:41 2017 -0700
Hide __posix_spawn_file_actions_realloc/__spawni [BZ #18822]
Hide internal __posix_spawn_file_actions_realloc and /__spawni functions
to allow direct access within libc.so and libc.a without using GOT nor
PLT.
[BZ #18822]
* posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
attribute_hidden.
(__spawni): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f9f658b161c22bb43f111fa73dc4222492aeabcb
commit f9f658b161c22bb43f111fa73dc4222492aeabcb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 06:10:22 2017 -0700
Hide internal __mremap function [BZ #18822]
Hide internal __mremap function to allow direct access within libc.so and
libc.a without using GOT nor PLT.
__GI___mremap is defined when sysdeps/unix/syscalls.list is used to
generate mremap. Otherwise libc_hidden_def is needed explicitly.
[BZ #18822]
* include/sys/mman.h (__mremap): Add libc_hidden_proto.
* sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0700a91920d2348c875481da44c0da6a1a5064aa
commit 0700a91920d2348c875481da44c0da6a1a5064aa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Aug 21 06:07:11 2017 -0700
Hide internal __malloc_check_init function [BZ #18822]
Hide internal __malloc_check_init function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
* include/malloc.h (__malloc_check_init): Add attribute_hidden.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=03e0fd739c24f1e74eb710f6bf004c653832a7a9
commit 03e0fd739c24f1e74eb710f6bf004c653832a7a9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 11:53:06 2017 -0700
Hide internal __ioctl function [BZ #18822]
Hide internal __ioctl function to allow direct access within libc.so and
libc.a without using GOT nor PLT.
__GI___ioctl is defined when sysdeps/unix/syscalls.list is used to
generate ioctl. Otherwise libc_hidden_def is needed explicitly.
[BZ #18822]
* include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
* misc/ioctl.c (__ioctl): Add libc_hidden_def.
* sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
* sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
* sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=414250adc18eb7516d43262d5dc2dbfe2d76d888
commit 414250adc18eb7516d43262d5dc2dbfe2d76d888
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 11:40:26 2017 -0700
Mark internal intl functions with attribute_hidden [BZ #18822]
Mark internal intl functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* intl/gettextP.h (__dcngettext): Add attribute_hidden.
(__dcigettext): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c1394fab7c3e9eed70defb442ad5c152be51fc9a
commit c1394fab7c3e9eed70defb442ad5c152be51fc9a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 11:25:56 2017 -0700
Hide internal sysinfo functions [BZ #18822]
Hide internal sysinfo functions to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* include/sys/sysinfo.h (__get_nprocs_conf): Add
libc_hidden_proto.
(__get_nprocs): Likewise.
(__get_phys_pages): Likewise.
(__get_avphys_pages): Likewise.
(__get_child_max): Add attribute_hidden.
* misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
(__get_nprocs): Likewise.
(__get_phys_pages): Likewise.
(__get_avphys_pages): Likewise.
* sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
libc_hidden_def.
(__get_nprocs): Likewise.
(__get_phys_pages): Likewise.
(__get_avphys_pages): Likewise.
* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
libc_hidden_def.
(__get_nprocs_conf): Likewise.
(__get_phys_pages): Likewise.
(__get_avphys_pages): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1dbe90c340d17dfc34fc9fd58ef9ff43347e0ef2
commit 1dbe90c340d17dfc34fc9fd58ef9ff43347e0ef2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 10:38:46 2017 -0700
Mark internal netlink functions with attribute_hidden [BZ #18822]
Mark internal netlink functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
attribute_hidden.
(__netlink_close): Likewise.
(__netlink_free_handle): Likewise.
(__netlink_request): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=605bef612eb2ffadcfff14906c62363a895da631
commit 605bef612eb2ffadcfff14906c62363a895da631
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 10:22:10 2017 -0700
Mark internal rpc functions with attribute_hidden [BZ #18822]
Mark internal rpc functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/rpc/rpc.h (__rpc_thread_variables): Add
attribute_hidden.
(__rpc_thread_svc_cleanup): Likewise.
(__rpc_thread_clnt_cleanup): Likewise.
(__rpc_thread_key_cleanup): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8a83677848555643d4430e9050172144e35c6878
commit 8a83677848555643d4430e9050172144e35c6878
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 08:05:25 2017 -0700
Hide __readv and __writev [BZ #18822]
Hide internal __readv and __writev functions to allow direct access
within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/sys/uio.h (__readv): Add libc_hidden_proto.
(__writev): Likewise.
* misc/readv.c (__readv): Add libc_hidden_def.
* misc/writev.c (__writev): Likewise.
* sysdeps/posix/readv.c (__readv): Likewise.
* sysdeps/posix/writev.c (__writev): Likewise.
* sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
(__readv): Likewise.
* sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
(__writev): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=148a658735ad5bc592a0b89d32987f26a2fe4bed
commit 148a658735ad5bc592a0b89d32987f26a2fe4bed
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 20 07:28:23 2017 -0700
Hide internal regex functions [BZ #18822]
Hide internal regex functions to allow direct access within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* include/regex.h (__re_compile_fastmap): Add attribute_hidden.
(__regcomp): Add libc_hidden_proto.
(__regexec): Likewise.
(__regfree): Likewise.
* posix/regcomp.c (__regcomp): Add libc_hidden_def.
(__regfree): Likewise.
* posix/regexec.c (__regexec): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=111ec3a710a8d9fa1b8c3b73fe3ffcd74d21a7ff
commit 111ec3a710a8d9fa1b8c3b73fe3ffcd74d21a7ff
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 16:47:56 2017 -0700
Mark internal stdlib functions with attribute_hidden [BZ #18822]
Mark internal stdlib functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT. __realpath
is hidden with libc_hidden_proto and libc_hidden_def since the exported
realpath is an alias of __realpath.
[BZ #18822]
* include/stdlib.h (__random): Add attribute_hidden.
(__random_r): Likewise.
(__srandom_r): Likewise.
(__initstate_r): Likewise.
(__setstate_r): Likewise.
(__erand48_r): Likewise.
(__nrand48_r): Likewise.
(__jrand48_r): Likewise.
(__srand48_r): Likewise.
(__seed48_r): Likewise.
(__lcong48_r): Likewise.
(__drand48_iterate): Likewise.
(__setenv): Likewise.
(__unsetenv): Likewise.
(__clearenv): Likewise.
(__ptsname_r): Likewise.
(__posix_openpt): Likewise.
(__add_to_environ): Likewise.
(__realpath): Add libc_hidden_proto.
(__ecvt_r): Likewise.
(__fcvt_r): Likewise.
(__qecvt_r): Likewise.
(__qfcvt_r): Likewise.
* misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
* stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=550efff5105253c16925a74da89d178a96bec7c0
commit 550efff5105253c16925a74da89d178a96bec7c0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 16:29:20 2017 -0700
Mark internal utmp functions with attribute_hidden [BZ #18822]
Mark internal utmp functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/utmp.h (__updwtmp): Add libc_hidden_proto.
(__getutent): Likewise.
(__getutid): Likewise.
(__getutline): Likewise.
(__pututline): Likewise.
(__getutent_r): Likewise.
(__getutid_r): Likewise.
(__getutline_r): Likewise.
(__utmpname): Add attribute_hidden.
(__setutent): Likewise.
(__endutent): Likewise.
* login/getutent.c (__getutent): Add libc_hidden_def.
* login/getutent_r.c (__getutent_r): Likewise.
(__pututline): Likewise.
* login/getutid.c (__getutid): Likewise.
* login/getutid_r.c (__getutid_r): Likewise.
* login/getutline.c (__getutline): Likewise.
* login/getutline_r.c (__getutline_r): Likewise.
* login/updwtmp.c (__updwtmp): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7c43e85b727a1d175ef442cb137dbbf50ca8e355
commit 7c43e85b727a1d175ef442cb137dbbf50ca8e355
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 16:23:58 2017 -0700
Mark internal dirent functions with attribute_hidden [BZ #18822]
Mark internal dirent functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT. __readdir64
is hidden with libc_hidden_proto and libc_hidden_def since the exported
readdir64 is an alias of __readdir64.
[BZ #18822]
* include/dirent.h (__opendir): Always add attribute_hidden.
(__fdopendir): Likewise.
(__closedir): Likewise.
(__readdir): Likewise.
(__readdir64): Add libc_hidden_proto.
* sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
* sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
* sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
* sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
New alias.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=69b667c9f70d6a3745e557c3f23c930268ac5013
commit 69b667c9f70d6a3745e557c3f23c930268ac5013
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 15:49:08 2017 -0700
Mark internal getXXXbyYYY functions with attribute_hidden [BZ #18822]
Mark internal getXXXbyYYY functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
* include/netdb.h (__gethostbyaddr_r): Likewise.
(__gethostbyname_r): Likewise.
(__gethostbyname2_r): Likewise.
(__getnetbyaddr_r): Likewise.
(__getnetbyname_r): Likewise.
(__getservbyname_r): Likewise.
(__getservbyport_r): Likewise.
(__getprotobyname_r): Likewise.
(__getprotobynumber_r): Likewise.
(__getnetgrent_r): Likewise.
* include/rpc/netdb.h (__getrpcbyname_r): Likewise.
(__getrpcbynumber_r): Likewise.
* nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eba46f5a421fbe1359fd26b6edd5c792a85ea8b6
commit eba46f5a421fbe1359fd26b6edd5c792a85ea8b6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 15:45:30 2017 -0700
Mark internal stdio functions with attribute_hidden [BZ #18822]
Mark internal stdio functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/stdio.h (__fcloseall): Add attribute_hidden.
(__getline): Likewise.
(__path_search): Likewise.
(__gen_tempname): Likewise.
(__libc_message): Likewise.
(__flockfile): Likewise.
(__funlockfile): Likewise.
(__fxprintf): Likewise.
(__fxprintf_nocancel): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=be1f438df78d4da2b3a296b3cd2e2ee357c3defe
commit be1f438df78d4da2b3a296b3cd2e2ee357c3defe
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 15:44:27 2017 -0700
Mark internal gshadow functions with attribute_hidden [BZ #18822]
Mark internal gshadow functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
(__sgetsgent_r): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=02af6ae09abb8c3297b5d5f84b7718ec0e010a7d
commit 02af6ae09abb8c3297b5d5f84b7718ec0e010a7d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Aug 19 15:37:42 2017 -0700
Mark internal statfs functions with attribute_hidden [BZ #18822]
Mark internal statfs functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/sys/statfs.h (__fstatfs): Add attribute_hidden.
(__statfs64): Likewise.
(__fstatfs64): Likewise.
* include/sys/statvfs.h (__statvfs64): Likewise.
(__fstatvfs64): Likewise.
* sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
(__statfs_filesize_max): Likewise.
(__statfs_symlinks): Likewise.
(__statfs_chown_restricted): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b346121113437ec8cdad6b865c4c5367de845a38
commit b346121113437ec8cdad6b865c4c5367de845a38
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 17:30:29 2017 -0700
Mark internal time functions with attribute_hidden [BZ #18822]
Mark internal time functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/time.h (__tzstring): Add attribute_hidden.
(__tzfile_read): Likewise.
(__tzfile_compute): Likewise.
(__tzfile_default): Likewise.
(__tzset_parse_tz): Likewise.
(__offtime): Likewise.
(__asctime_r): Likewise.
(__tzset): Likewise.
(__tz_convert): Likewise.
(__getdate_r): Likewise.
(__getclktck): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b1e27ca514ab111bfb3e5f41d375b2cd12d6d6b3
commit b1e27ca514ab111bfb3e5f41d375b2cd12d6d6b3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 17:16:26 2017 -0700
Mark internal nscd functions with attribute_hidden [BZ #18822]
Mark internal nscd functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
(__nscd_unmap): Likewise.
(__nscd_cache_search): Likewise.
(__nscd_get_nl_timestamp): Likewise.
(__nscd_getpwnam_r): Likewise.
(__nscd_getpwuid_r): Likewise.
(__nscd_getgrnam_r): Likewise.
(__nscd_getgrgid_r): Likewise.
(__nscd_gethostbyname_r): Likewise.
(__nscd_gethostbyname2_r): Likewise.
(__nscd_gethostbyaddr_r): Likewise.
(__nscd_getai): Likewise.
(__nscd_getgrouplist): Likewise.
(__nscd_getservbyname_r): Likewise.
(__nscd_getservbyport_r): Likewise.
(__nscd_innetgr): Likewise.
(__nscd_setnetgrent): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8486c25530f0a343459f4f80eeb267dffebc3611
commit 8486c25530f0a343459f4f80eeb267dffebc3611
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 17:04:20 2017 -0700
Mark internal gmp functions with attribute_hidden [BZ #18822]
Mark internal gmp functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/gmp.h: Declare internal functions only if _ISOMAC is
undefined.
(__mpn_extract_double): Add attribute_hidden.
(__mpn_extract_long_double): Likewise.
(__mpn_extract_float128): Likewise.
(__mpn_construct_float): Likewise.
(__mpn_construct_double): Likewise.
(__mpn_construct_long_double): Likewise.
(__mpn_construct_float128): Likewise.
(mpn_add_1): Likewise.
(mpn_addmul_1): Likewise.
(mpn_add_n): Likewise.
(mpn_cmp): Likewise.
(mpn_divrem): Likewise.
(mpn_lshift): Likewise.
(mpn_mul): Likewise.
(mpn_mul_1): Likewise.
(mpn_rshift): Likewise.
(mpn_sub_1): Likewise.
(mpn_submul_1): Likewise.
(mpn_sub_n): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f811cc4759291c4119982e3d7adf7e882c81e4f4
commit f811cc4759291c4119982e3d7adf7e882c81e4f4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 13:24:43 2017 -0700
Mark internal wchar functions with attribute_hidden [BZ #18822]
Mark internal wchar functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/wchar.h (__wcsnlen): Add attribute_hidden.
(__wcscat): Likewise.
(__btowc): Likewise.
(__wcrtomb): Likewise.
(__mbsrtowcs): Likewise.
(__wcsrtombs): Likewise.
(__mbsnrtowcs): Likewise.
(__wcsnrtombs): Likewise.
(__wcsncpy): Likewise.
(__wcpncpy): Likewise.
(__wmemcpy): Likewise.
(__wmempcpy): Likewise.
(__wmemmove): Likewise.
(__wcschrnul): Likewise.
(__vfwscanf): Likewise.
(__vswprintf): Likewise.
(__fwprintf): Likewise.
(__vfwprintf): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8e39a59eb172c4cdf851f2c21baa91cdd3d1d0ac
commit 8e39a59eb172c4cdf851f2c21baa91cdd3d1d0ac
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 09:00:24 2017 -0700
Mark internal grp/pwd/shadow functions with attribute_hidden [BZ #18822]
Mark internal grp/pwd/shadow functions with attribute_hidden to allow
direct access within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/grp.h (__fgetgrent_r): Add attribute_hidden.
(__getgrgid_r): Likewise.
(__getgrnam_r): Likewise.
* include/pwd.h (__getpwuid_r): Likewise.
(__getpwnam_r): Likewise.
(__fgetpwent_r): Likewise.
* include/shadow.h (__getspnam_r): Likewise.
(__sgetspent_r): Likewise.
(__fgetspent_r): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a560f498ecf60cf910e4c3fd834a13424bd0f47d
commit a560f498ecf60cf910e4c3fd834a13424bd0f47d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 18 05:43:12 2017 -0700
Mark internal unistd functions with attribute_hidden [BZ #18822]
Mark internal unistd functions with attribute_hidden to allow direct
access to them within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* include/unistd.h (__access): Add attribute_hidden.
(__lseek64): Likewise.
(__libc_pread64): Likewise.
(__pipe2): Likewise.
(__sleep): Likewise.
(__chdir): Likewise.
(__fchdir): Likewise.
(__getcwd): Likewise.
(__rmdir): Likewise.
(__execvpe): Likewise.
(__execve): Likewise.
(__setsid): Likewise.
(__getuid): Likewise.
(__geteuid): Likewise.
(__getgid): Likewise.
(__getegid): Likewise.
(__getgroups): Likewise.
(__group_member): Likewise.
(__ttyname_r): Likewise.
(__isatty): Likewise.
(__readlink): Likewise.
(__unlink): Likewise.
(__gethostname): Likewise.
(__profil): Likewise.
(__getdtablesize): Likewise.
(__brk): Likewise.
(__ftruncate): Likewise.
(__ftruncate64): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e8b5e8f35828b658f4d5deb08c55ab31a4fc63bd
commit e8b5e8f35828b658f4d5deb08c55ab31a4fc63bd
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 17 13:17:12 2017 -0700
Mark internal argp functions with attribute_hidden [BZ #18822]
Mark internal argp functions with attribute_hidden to allow direct
access to them within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
* argp/argp-fs-xinl.c: Likewise.
* argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
* argp/argp-parse.c: Include <argp.h>.
* argp/argp-xinl.c: Likewise.
* include/argp-fmtstream.h: New file.
* include/argp.h (__argp_error): Add attribute_hidden.
(__argp_failure): Likewise.
(__argp_input): Likewise.
(__argp_state_help): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=614c77aedcb2965b91dd413b380227650dfcb67b
commit 614c77aedcb2965b91dd413b380227650dfcb67b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 17 12:48:28 2017 -0700
Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822]
Mark ____wcsto*_l_internal functions with attribute_hidden to allow
direct access to them within libc.so and libc.a without using GOT nor
PLT.
[BZ #18822]
* include/wchar.h (____wcstof_l_internal): New prototype.
(____wcstod_l_internal): Likewise.
(____wcstold_l_internal): Likewise.
(____wcstol_l_internal): Likewise.
(____wcstoul_l_internal): Likewise.
(____wcstoll_l_internal): Likewise.
(____wcstoull_l_internal): Likewise.
(____wcstof128_l_internal): Likewise.
* sysdeps/ieee754/float128/wcstof128.c
(____wcstof128_l_internal): Removed.
* sysdeps/ieee754/float128/wcstof128_l.c
(____wcstof128_l_internal): Likewise.
* wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
* wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
* wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
* wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
* wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
* wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
* wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
* wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
* wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
* wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=438de19d7b49d2b8469722c4a932e5f4c17036fa
commit 438de19d7b49d2b8469722c4a932e5f4c17036fa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 17 12:35:02 2017 -0700
Mark __internal_statvfs[64] with attribute_hidden [BZ #18822]
Mark __internal_statvfs[64] with attribute_hidden to allow direct access
to them within libc.so and libc.a without using GOT nor PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
instead of <sys/statvfs.h>.
(__internal_statvfs): Removed.
* sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
instead of <sys/statvfs.h>.
(__internal_statvfs64): Removed.
* sysdeps/unix/sysv/linux/internal_statvfs.c: Include
"internal_statvfs.h" instead of <sys/statvfs.h>.
* sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
* sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
instead of <sys/statvfs.h>.
(__internal_statvfs): Removed.
* sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
instead of <sys/statvfs.h>.
(__internal_statvfs64): Removed.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7666f34db1d3e0f62888374cf3e49744d8baf109
commit 7666f34db1d3e0f62888374cf3e49744d8baf109
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 17 12:26:17 2017 -0700
Mark 3 *_internal functions with attribute_hidden [BZ #18822]
Mark __ptsname_internal, __mktime_internal and __fopen_internal with
attribute_hidden to allow direct access to them within libc.so and
libc.a without using GOT nor PLT.
[BZ #18822]
* include/stdlib.h (__ptsname_internal): Add attribute_hidden.
* include/time.h (__mktime_internal): Likewise.
* libio/iolibio.h (__fopen_internal): Likewise.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d71ea66017853c7aaeeb2e75945e9261030cf9d7
commit d71ea66017853c7aaeeb2e75945e9261030cf9d7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 13 07:00:22 2017 -0700
Mark internal functions with attribute_hidden [BZ #18822]
Mark internal functions with attribute_hidden to allow direct access to
internal functions within libc.so and libc.a without using GOT nor PLT.
Size comparison of libc.so:
On x86-64:
text data bss dec hex
Before: 1728577 20584 17088 1766249 1af369
After : 1728593 20584 17088 1766265 1af379
The only change is __gconv_release_shlib in iconv/gconv_dl.c is inlined
since it is hidden, which increases the code size of gconv_dl.os by 18
bytes.
On i686:
text data bss dec hex
Before: 1869039 11444 11112 1891595 1cdd0b
After : 1868635 11444 11112 1891191 1cdb77
The code size is decreased by avoiding GOT/PLT for hidden functions.
[BZ #18822]
* iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
(__gconv_close): Likewise.
(__gconv): Likewise.
(__gconv_find_transform): Likewise.
(__gconv_lookup_cache): Likewise.
(__gconv_compare_alias_cache): Likewise.
(__gconv_load_cache): Likewise.
(__gconv_get_path): Likewise.
(__gconv_close_transform): Likewise.
(__gconv_release_cache): Likewise.
(__gconv_find_shlib): Likewise.
(__gconv_release_shlib): Likewise.
(__gconv_get_builtin_trans): Likewise.
(__gconv_compare_alias): Likewise.
* include/dlfcn.h (_dlerror_run): Likewise.
* include/stdio.h (__fortify_fail_abort): Likewise.
* include/time.h (__tz_compute): Likewise.
(__strptime_internal): Likewise.
* intl/gettextP.h (_nl_find_domain): Likewise.
(_nl_load_domain): Likewise.
(_nl_find_msg): Likewise.
* intl/plural-exp.h (FREE_EXPRESSION): Likewise.
(EXTRACT_PLURAL_EXPRESSION): Likewise.
* locale/coll-lookup.h (__collidx_table_lookup): Likewise.
* resolv/gai_misc.h (__gai_enqueue_request): Likewise.
(__gai_find_request): Likewise.
(__gai_remove_request): Likewise.
(__gai_notify): Likewise.
(__gai_notify_only): Likewise.
* sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
* sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
(_dl_non_dynamic_init): Likewise.
(_dl_aux_init): Likewise.
* sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
* sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
Likewise.
* wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
(__wcsmbs_clone_conv): Likewise.
(__wcsmbs_named_conv): Likewise.
-----------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.