This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 11/19] Mark ld.so internel __profile_frequency 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:12 -0700
- Subject: [PATCH 11/19] Mark ld.so internel __profile_frequency hidden
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Since ld.so internel __profile_frequency is only used internally in
ld.so, it can be made hidden.
[BZ #19122]
* include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
Add attribute_hidden.
---
include/libc-internal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/libc-internal.h b/include/libc-internal.h
index b37388e..65a2a56 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -34,6 +34,10 @@ extern void __libc_thread_freeres (void);
/* Define and initialize `__progname' et. al. */
extern void __init_misc (int, char **, char **);
+# if IS_IN (rtld)
+extern __typeof (__profile_frequency) __profile_frequency attribute_hidden;
+# endif
+
/* 1 if 'type' is a pointer type, 0 otherwise. */
# define __pointer_type(type) (__builtin_classify_type ((type) 0) == 5)
--
2.4.3