From 3c82bb5042330441a18fd8e8d5b74d25d5540a66 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 15 Oct 2015 14:33:26 -0700 Subject: 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. --- ChangeLog | 3 +++ include/sys/utsname.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index bca8f9e121..0261e66b16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2015-10-15 H.J. Lu [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 -- cgit 1.4.1