From: H.J. Lu Date: Thu, 15 Oct 2015 21:24:20 +0000 (-0700) Subject: Mark ld.so internel stdlib functions hidden X-Git-Tag: glibc-2.23~325 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3fc94c04f72e492f55be4349c6df2a910762b70;p=thirdparty%2Fglibc.git Mark ld.so internel stdlib functions hidden Since ld.so internel stdlib functions are only used internally in ld.so, they can be made hidden. [BZ #19122] * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add attribute_hidden. [IS_IN (rtld)] (__strtoul_internal): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 11536083597..bdb44a26681 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ 2015-10-15 H.J. Lu [BZ #19122] + * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add + attribute_hidden. + [IS_IN (rtld)] (__strtoul_internal): Likewise. + * include/signal.h [IS_IN (rtld)] (__sigaction): Add attribute_hidden. [IS_IN (rtld)] (__libc_sigaction): Likewise. diff --git a/include/stdlib.h b/include/stdlib.h index 992b87793c2..dcb83a50271 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -242,6 +242,11 @@ struct abort_msg_s extern struct abort_msg_s *__abort_msg; libc_hidden_proto (__abort_msg) +# if IS_IN (rtld) +extern __typeof (unsetenv) unsetenv attribute_hidden; +extern __typeof (__strtoul_internal) __strtoul_internal attribute_hidden; +# endif + __END_DECLS #endif