aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:33:26 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:33:40 -0700
commit3c82bb5042330441a18fd8e8d5b74d25d5540a66 (patch)
treeac4360d387f9145ac0f0a13422f0e56b5c667ea2
parentf84114688abe316b6a736302a7c13f4883d41f13 (diff)
downloadglibc-3c82bb5042330441a18fd8e8d5b74d25d5540a66.tar
glibc-3c82bb5042330441a18fd8e8d5b74d25d5540a66.tar.gz
glibc-3c82bb5042330441a18fd8e8d5b74d25d5540a66.tar.bz2
glibc-3c82bb5042330441a18fd8e8d5b74d25d5540a66.zip
Mark ld.so internel __uname hidden
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.
-rw-r--r--ChangeLog3
-rw-r--r--include/sys/utsname.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bca8f9e121..0261e66b16 100644
--- 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.
diff --git a/include/sys/utsname.h b/include/sys/utsname.h
index 66a5289638..14f4247dd4 100644
--- a/include/sys/utsname.h
+++ b/include/sys/utsname.h
@@ -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