From patchwork Wed Oct 14 22:46:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 9149 Received: (qmail 43890 invoked by alias); 14 Oct 2015 22:46:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 43877 invoked by uid 89); 14 Oct 2015 22:46:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga09.intel.com X-ExtLoop1: 1 Date: Wed, 14 Oct 2015 15:46:12 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 11/19] Mark ld.so internel __profile_frequency hidden Message-ID: <20151014224612.GC30880@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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)