From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758297Ab0CMGut (ORCPT ); Sat, 13 Mar 2010 01:50:49 -0500 Received: from mail-iw0-f176.google.com ([209.85.223.176]:64010 "EHLO mail-iw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754252Ab0CMGuh (ORCPT ); Sat, 13 Mar 2010 01:50:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=MjEhQOLA4nX0peOC9PV1KU+qnraa6flhmGsguoDeYRW32rzLonbTApEit2P4bLzNOA G7uvLvyOrkI0A5oN8OpXOK95yio2RMO+d6I+gxedzUE90AgXA/w+UoP51BjYxAbyR3ly cOJOLLv4ux2y6fbN3R4QTuZLMwdi0sot26oUs= From: Rabin Vincent To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Rabin Vincent , Steven Rostedt , Frederic Weisbecker , Ingo Molnar , Abhishek Sagar , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH 07/10] ftrace: pass KBUILD_CFLAGS to record_mcount.pl Date: Sat, 13 Mar 2010 12:19:44 +0530 Message-Id: <1268462987-8271-8-git-send-email-rabin@rab.in> X-Mailer: git-send-email 1.7.0 In-Reply-To: <1268462987-8271-1-git-send-email-rabin@rab.in> References: <1268462987-8271-1-git-send-email-rabin@rab.in> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)" \ "$(if $(part-of-module),1,0)" "$(@)"; endif -- 1.7.0