]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark ld.so internel __uname hidden
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:33:26 +0000 (14:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:33:40 +0000 (14:33 -0700)
Since ld.so internel __uname is only used internally in ld.so, it can
be made hidden.

[BZ #19122]
* include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
attribute_hidden.

ChangeLog
include/sys/utsname.h

index bca8f9e121dd446d03ac2ff6dad49579a792efb0..0261e66b16b12bbe91ca8e612983e5a030e7049d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19122]
+       * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
+       attribute_hidden.
+
        * include/string.h [IS_IN (rtld)] (__stpcpy): Add
        attribute_hidden.
        [IS_IN (rtld)] (__strdup): Likewise.
index 66a5289638202e8892fef5fa906308c6d1766797..14f4247dd4135d68c9ad4703a8dcf40c5edf3794 100644 (file)
@@ -6,5 +6,9 @@ extern int __uname (struct utsname *__name);
 
 libc_hidden_proto (uname)
 libc_hidden_proto (__uname)
+
+# if IS_IN (rtld)
+extern __typeof (__uname) __uname attribute_hidden;
+# endif
 #endif
 #endif