[33/58] Hide internal __sysinfo function [BZ #18822]
Commit Message
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.
---
sysdeps/unix/sysv/linux/include/sys/sysinfo.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
Tested with build-many-glibcs.py. I am checking it in.
@@ -23,7 +23,7 @@
# ifndef _ISOMAC
-extern __typeof (sysinfo) __sysinfo __THROW;
+extern __typeof (sysinfo) __sysinfo __THROW attribute_hidden;
# endif /* _ISOMAC */
#endif /* sys/sysinfo.h */