This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 25/58] Hide internal sysinfo functions [BZ #18822]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sun, 1 Oct 2017 15:29:39 -0700
- Subject: Re: [PATCH 25/58] Hide internal sysinfo functions [BZ #18822]
- Authentication-results: sourceware.org; auth=none
- References: <20170901180029.9527-1-hjl.tools@gmail.com> <20170901180029.9527-26-hjl.tools@gmail.com>
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
Tested with build-many-glibcs.py. I am checking it in.
--
H.J.