From e19f02428bacdf7565cb4e61a363c61501ce6870 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 15 Oct 2015 14:20:43 -0700 Subject: [PATCH] Mark ld.so internel __profile_frequency hidden 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 | 3 +++ include/libc-internal.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 338608b00e..3dba8b3673 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2015-10-15 H.J. Lu [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. diff --git a/include/libc-internal.h b/include/libc-internal.h index b37388ecd7..65a2a56cc7 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)