From patchwork Thu Mar 3 13:45:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 11174 Received: (qmail 91571 invoked by alias); 3 Mar 2016 13:45:21 -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 85850 invoked by uid 89); 3 Mar 2016 13:45:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=BAYES_20, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=77, Hx-languages-length:1030, UD:_mcount.S, mcount X-HELO: mga03.intel.com X-ExtLoop1: 1 Date: Thu, 3 Mar 2016 05:45:00 -0800 From: "H.J. Lu" To: GNU C Library Cc: Paul Pluzhnikov Subject: [PATCH] Copy x86_64 _mcount.op from _mcount.o Message-ID: <20160303134500.GA18701@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) No need to compile x86_64 _mcount.S with -pg. We can just copy the normal static object. * gmon/Makefile (noprof): Add $(sysdep_noprof). * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount. --- gmon/Makefile | 2 +- sysdeps/x86_64/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gmon/Makefile b/gmon/Makefile index abb96d7..c7c9e58 100644 --- a/gmon/Makefile +++ b/gmon/Makefile @@ -45,7 +45,7 @@ include ../Rules # On systems where `profil' is not a system call, the same # problem exists for the internal functions in profil.c. -noprof := mcount +noprof := mcount $(sysdep_noprof) ifeq (,$(filter profil,$(unix-syscalls))) noprof += profil sprofil endif diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 67ed5ba..9fcadd8 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -7,6 +7,7 @@ endif ifeq ($(subdir),gmon) sysdep_routines += _mcount +sysdep_noprof += _mcount endif ifeq ($(subdir),malloc)