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

ChangeLog
include/libc-internal.h

index 338608b00e3096149abe1d79da6253d6cca87a27..3dba8b367301363ab07fb793f29c7c1fb6c43470 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19122]
+       * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
+       Add attribute_hidden.
+
        * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
        [IS_IN (rtld)] (__open): Likewise.
        [IS_IN (rtld)] (__fcntl): Likewise.
index b37388ecd7302e012fdda520145698992d6bb8e1..65a2a56cc73c4faef1bebadceb7180cdfe9c2c94 100644 (file)
@@ -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)