From patchwork Fri Sep 1 18:00:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 22519 Received: (qmail 85117 invoked by alias); 1 Sep 2017 18:00:51 -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 85059 invoked by uid 89); 1 Sep 2017 18:00:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*m:gmail X-HELO: mga06.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 53/58] Hide internal __moncontrol function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:24 -0700 Message-Id: <20170901180029.9527-54-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __moncontrol function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * mon/gmon.c (__moncontrol): Add libc_hidden_proto and libc_hidden_def. --- gmon/gmon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gmon/gmon.c b/gmon/gmon.c index 4e48eba1bf..f1aa3b776c 100644 --- a/gmon/gmon.c +++ b/gmon/gmon.c @@ -62,6 +62,7 @@ static int s_scale; void moncontrol (int mode); void __moncontrol (int mode); +libc_hidden_proto (__moncontrol) static void write_hist (int fd); static void write_call_graph (int fd); static void write_bb_counts (int fd); @@ -93,6 +94,7 @@ __moncontrol (int mode) p->state = GMON_PROF_OFF; } } +libc_hidden_def (__moncontrol) weak_alias (__moncontrol, moncontrol)