From patchwork Fri Feb 20 18:01:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 442099 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4DBCC140161 for ; Sat, 21 Feb 2015 05:08:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754492AbbBTSBh (ORCPT ); Fri, 20 Feb 2015 13:01:37 -0500 Received: from mail-wi0-f196.google.com ([209.85.212.196]:34142 "EHLO mail-wi0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbbBTSBd (ORCPT ); Fri, 20 Feb 2015 13:01:33 -0500 Received: by mail-wi0-f196.google.com with SMTP id em10so1757067wid.3; Fri, 20 Feb 2015 10:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=GBtnAK4VG5sNyZ9nQ/VQoABoAe+gDc+UGY3xW5Onjxw=; b=o8boE/gjR6XWfdNIaSrdpaanvhfzIMByuQ07HbQWTrAGthAF1bMCDHGmA3aJMMWsfB ULUi4GlqS94gOWuUMbQqU1LY7iy25yK0U1V+aaNbceKTmk0KX0vuKWebRXMWAtE4TzG+ hFAcq2p8zPBlgJqtbmoUvyKYJgPDhMeltMKI2twrmE7sAB/Q/Ph8GVeZaqYaxUwHqeZI YQLmjjADeJKp5hPvRwnfhvQ6xv160I/EUj7Ojudm3s8qwv9ojN4Z8aKye7oGI0HHqNMC RIKD1GV06mJOJyeStgIbYoEqgiBVUSYu8UEisq8a4ik0g10QTwq6nrC6VYWp8j68JkIh Ig+w== X-Received: by 10.194.61.51 with SMTP id m19mr21362750wjr.39.1424455290907; Fri, 20 Feb 2015 10:01:30 -0800 (PST) Received: from lmecul0520.st.com. (169.20.90.92.rev.sfr.net. [92.90.20.169]) by mx.google.com with ESMTPSA id hs7sm3398370wib.4.2015.02.20.10.01.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 10:01:30 -0800 (PST) From: Maxime Coquelin To: u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Maxime Coquelin , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov , Rusty Russell , Kees Cook , Michal Marek , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH v2 01/18] scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel Date: Fri, 20 Feb 2015 19:01:00 +0100 Message-Id: <1424455277-29983-2-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org When Kernel is executed in place from ROM, the symbol addresses can be lower than the page offset. Signed-off-by: Maxime Coquelin --- scripts/link-vmlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 86a4fe7..b055d9d 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -82,7 +82,7 @@ kallsyms() kallsymopt="${kallsymopt} --all-symbols" fi - if [ -n "${CONFIG_ARM}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then + if [ -n "${CONFIG_ARM}" ] && [ -z "${CONFIG_XIP_KERNEL}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" fi