From patchwork Wed Nov 13 11:15:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 3177931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 502379F39E for ; Wed, 13 Nov 2013 11:19:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C8E7200CA for ; Wed, 13 Nov 2013 11:19:03 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED3E1205FA for ; Wed, 13 Nov 2013 11:19:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgYSc-0007xt-0v; Wed, 13 Nov 2013 11:18:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgYSL-0005Gu-VJ; Wed, 13 Nov 2013 11:17:57 +0000 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgYSD-0005EZ-HU for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2013 11:17:50 +0000 Received: by mail-pd0-f173.google.com with SMTP id x10so275426pdj.4 for ; Wed, 13 Nov 2013 03:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P+zwCwYLocUQuji9pT7uXgVUfMPdoqnmg8nTvAB4+nY=; b=ojoOu7J590c9jPGs7ru27n3PkzAWLTuRM0NOS6BF2knl+o1mPiZf066eo4SAjSLGWi e0uITe9/5hXpQYiCEiH9SJ7DqlBXqu1e20Fv5Xuh4eo4mO4fvYI/FxaPyoYa5r6ETOEu rKJWvTqaifZDzVtLrFDAJKYOYB4n0aoXglCCePZk8aM51RnTWuFKYVE1v/Ybr5bKIS90 TKKtBeWG9b0VuZ1iTX7Tq9plx/mXWDJl33d1ALfnXeOblDTvAqnmy93HFxBm4uQK76uy IXi9TmJT1xXp+E+cmS2xohDn+JLJFDQ/RSgc8ZJfFuMwfIwEcAQz01x8te2GHMm/3Pqu XyWA== X-Received: by 10.66.124.138 with SMTP id mi10mr16375208pab.141.1384341447886; Wed, 13 Nov 2013 03:17:27 -0800 (PST) Received: from localhost ([183.37.245.238]) by mx.google.com with ESMTPSA id nj9sm43769300pbc.13.2013.11.13.03.17.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 13 Nov 2013 03:17:27 -0800 (PST) From: Ming Lei To: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] scripts/link-vmlinux.sh: only filter kernel symbols for arm Date: Wed, 13 Nov 2013 19:15:51 +0800 Message-Id: <1384341351-4110-3-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1384341351-4110-1-git-send-email-tom.leiming@gmail.com> References: <1384341351-4110-1-git-send-email-tom.leiming@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131113_061749_719442_3E07CE6F X-CRM114-Status: GOOD ( 11.55 ) X-Spam-Score: -2.0 (--) Cc: Ming Lei , Rusty Russell , linux-kernel@vger.kernel.org, stable@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Actually CONFIG_PAGE_OFFSET isn't same with PAGE_OFFSET, so it isn't easy to figue out PAGE_OFFSET defined in header file from scripts. Because CONFIG_PAGE_OFFSET may not be defined in some ARCHs( 64bit ARCH), or defined as bogus value in !MMU case, so this patch only applys the filter on ARM when CONFIG_PAGE_OFFSET is defined as the original problem is only on ARM. Cc: Cc: Rusty Russell Singed-off-by: Ming Lei --- scripts/link-vmlinux.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 32b10f5..2dcb377 100644 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -82,7 +82,9 @@ kallsyms() kallsymopt="${kallsymopt} --all-symbols" fi - kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" + if [ -n "${CONFIG_ARM}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then + kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" + fi local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \ ${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS}"