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.
This commit is contained in:
H.J. Lu 2017-10-01 16:05:10 -07:00
parent 6a088436d4
commit 6e342af6e7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -23,7 +23,7 @@
# ifndef _ISOMAC
extern __typeof (sysinfo) __sysinfo __THROW;
extern __typeof (sysinfo) __sysinfo __THROW attribute_hidden;
# endif /* _ISOMAC */
#endif /* sys/sysinfo.h */