about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:05:10 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:05:28 -0700
commit6e342af6e7399c96246c6174802e84d46a176ffa (patch)
treeecac2a3ba6519c712c4e98c0058918d9b3915e10
parent6a088436d4c04b8081e86f9e856f10fba97d0612 (diff)
downloadglibc-6e342af6e7399c96246c6174802e84d46a176ffa.tar.gz
glibc-6e342af6e7399c96246c6174802e84d46a176ffa.tar.xz
glibc-6e342af6e7399c96246c6174802e84d46a176ffa.zip
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.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/include/sys/sysinfo.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9397cdf562..7a6cb4a043 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 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]
 	* include/signal.h (__kill): Add libc_hidden_proto.
 	(__sigblock): Likewise.
 	(__sigprocmask): Likewise.
diff --git a/sysdeps/unix/sysv/linux/include/sys/sysinfo.h b/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
index 1fa4969ef8..084e203826 100644
--- a/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
+++ b/sysdeps/unix/sysv/linux/include/sys/sysinfo.h
@@ -23,7 +23,7 @@
 
 # ifndef _ISOMAC
 
-extern __typeof (sysinfo) __sysinfo __THROW;
+extern __typeof (sysinfo) __sysinfo __THROW attribute_hidden;
 
 # endif /* _ISOMAC */
 #endif /* sys/sysinfo.h */