This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 14/19] Mark ld.so internel stdlib functions 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:46:54 -0700
- Subject: [PATCH 14/19] Mark ld.so internel stdlib functions hidden
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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.
---
include/stdlib.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/stdlib.h b/include/stdlib.h
index 992b877..dcb83a5 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
--
2.4.3