[18/19] Mark ld.so internel __uname hidden

Message ID 20151014224824.GE30911@intel.com
State Committed
Headers

Commit Message

Lu, Hongjiu Oct. 14, 2015, 10:48 p.m. UTC
  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(+)
  

Comments

Roland McGrath Oct. 15, 2015, 8:14 p.m. UTC | #1
OK
  

Patch

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