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: "H.J. Lu" X-Patchwork-Id: 530424 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EB40F140E41 for ; Thu, 15 Oct 2015 09:46:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=avGNssP4; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :mime-version:content-type; q=dns; s=default; b=ivoosO+YIWoItr9k G3qnw1DPHBRtIJqQy8SrP91UURg9GHxOCIm1tABh0HBLiok4GvEfN8mY6F/6gUFJ LPtEoK8CbnZGmYZhO2ag64xS4slXfij7btyhmx1BiS4lDH2qNMoucQkrRJhLZ1gY rYNS6E97IEYgm2unMUu9IHachVI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :mime-version:content-type; s=default; bh=bDwev1G9f/i4EW5nAFcyUJ 6dTuQ=; b=avGNssP44ac3TzKMGbl2DWxHeK0j5xqmxs7DhNOdEPafQBDQrfQI1d triCTpIWVDWjvEsU+uNIOIeXtr2vOA/sQSJsAUcDedUTg45Oc2tUfHLeM15ObQou FQRUPge08C4G68PBVDb5mopDWrWkKj3mO0uXHS5WGu3gZ0v6MCNXg= 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)