This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 18/19] Mark ld.so internel __uname hidden
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 14 Oct 2015 15:48:24 -0700
- Subject: [PATCH 18/19] Mark ld.so internel __uname hidden
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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.
---
include/sys/utsname.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/sys/utsname.h b/include/sys/utsname.h
index 66a5289..14f4247 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
--
2.4.3