]> sourceware.org Git - glibc.git/commitdiff
Mark ld.so internel stdlib functions hidden
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:24:20 +0000 (14:24 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:24:35 +0000 (14:24 -0700)
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.

ChangeLog
include/stdlib.h

index 11536083597dd1245b74041eff72ca344c9ffff7..bdb44a2668193be8a95cd5ebcde4e8f2b3e32213 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        [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.
index 992b87793c21152537fae701c3a296876cf7e80d..dcb83a502712512982d16f4cceaadf0fe16b4cc7 100644 (file)
@@ -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
This page took 0.101107 seconds and 5 git commands to generate.