From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934835Ab0CMRlc (ORCPT ); Sat, 13 Mar 2010 12:41:32 -0500 Received: from cpe-74-67-89-75.stny.res.rr.com ([74.67.89.75]:41269 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934230Ab0CMRlb convert rfc822-to-8bit (ORCPT ); Sat, 13 Mar 2010 12:41:31 -0500 Subject: Re: [PATCH 07/10] ftrace: pass KBUILD_CFLAGS to record_mcount.pl From: Steven Rostedt To: Rabin Vincent Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Frederic Weisbecker , Ingo Molnar , Abhishek Sagar , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= In-Reply-To: <1268462987-8271-8-git-send-email-rabin@rab.in> References: <1268462987-8271-1-git-send-email-rabin@rab.in> <1268462987-8271-8-git-send-email-rabin@rab.in> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Sat, 13 Mar 2010 12:41:07 -0500 Message-ID: <1268502067.3366.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2010-03-13 at 12:19 +0530, Rabin Vincent wrote: > On ARM, we have two ABIs, and the ABI used is controlled via a config > option. Object files built with one ABI can't be merged with object > files built with the other ABI. So, record_mcount.pl needs to use the > same compiler flags as the kernel when generating the object file with > the mcount locations. Ensure this by passing CFLAGS to the script. > > Signed-off-by: Rabin Vincent > --- > scripts/Makefile.build | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 0b94d2f..2535c11 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -209,7 +209,8 @@ ifdef CONFIG_FTRACE_MCOUNT_RECORD > cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ > "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ > "$(if $(CONFIG_64BIT),64,32)" \ > - "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ > + "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ > + "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ Again, I'll have to test this on other archs, just to make sure its does not cause any side effects. Oh, I forgot I now have a MIPS board I can test on too. I'll probably do this on Monday. Thanks, -- Steve > "$(if $(part-of-module),1,0)" "$(@)"; > endif >