From patchwork Fri Jul 13 16:11:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: seedshope X-Patchwork-Id: 170921 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 053102C02E8 for ; Sat, 14 Jul 2012 02:14:04 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D170228164; Fri, 13 Jul 2012 18:13:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vwmLQAYjQx7o; Fri, 13 Jul 2012 18:13:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 743342815C; Fri, 13 Jul 2012 18:13:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2793B2815B for ; Fri, 13 Jul 2012 18:13:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FGGyb1uLN6Lu for ; Fri, 13 Jul 2012 18:13:18 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 876272811E for ; Fri, 13 Jul 2012 18:12:52 +0200 (CEST) Received: by mail-pb0-f44.google.com with SMTP id wy7so5538073pbc.3 for ; Fri, 13 Jul 2012 09:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=br0RZU2GfyA7UBMTnCAi2ssoSUpYPHCZErJzktgoRyk=; b=mErN/gPS8QhCIXzxSWujrxUo9T1HThK3HdeoBBOb8oTlO1IMA81D839kl/Zy0jlHd4 vF1uaTwZ19R4Tey7g2Z3v/HTUiLYdgHZnD13bbQqr8W24BS1ScUsYakaVVyToGrxMekK spaSY6Vt7vl6+9924PzTYXwWI+1QXsOiEJTBgkxnt/tBldn6i330N4IoJtCLORy6UdOZ Zri9J+gkbVPfloPH2fxT1OXTNBLRsx7n5b5Lmv5HWSU7XxPD0tgIUZxYQynC18xVNc0C pyxNqTrCrpYaVYc+HeNZTCbgQHSIO0Te1RlxW38trZH0nCtZleDiK8mg4ckyG4qNY0Ee 90FQ== Received: by 10.68.231.40 with SMTP id td8mr4503067pbc.150.1342195972090; Fri, 13 Jul 2012 09:12:52 -0700 (PDT) Received: from localhost.localdomain ([221.221.22.146]) by mx.google.com with ESMTPS id he9sm6266691pbc.68.2012.07.13.09.12.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2012 09:12:51 -0700 (PDT) From: Zhong Hongbo To: u-boot@lists.denx.de Date: Sat, 14 Jul 2012 00:11:47 +0800 Message-Id: <1342195913-25161-10-git-send-email-bocui107@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1342195913-25161-1-git-send-email-bocui107@gmail.com> References: <1342195913-25161-1-git-send-email-bocui107@gmail.com> Cc: Scott Wood Subject: [U-Boot] [V2 09/15] arm1176: Fixed No relocation. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Zhong Hongbo When It do not need to relocat for u-boot, the offset(r9) of relocation should be set zero. Signed-off-by: Zhong Hongbo --- Change for V2: - This fix is seprated from nand_spl patch. --- arch/arm/cpu/arm1176/start.S | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S index 26a3533..de2cb39 100644 --- a/arch/arm/cpu/arm1176/start.S +++ b/arch/arm/cpu/arm1176/start.S @@ -252,6 +252,7 @@ stack_setup: adr r0, _start cmp r0, r6 + mov r9, #0 beq clear_bss /* skip relocation */ mov r1, r6 /* r1 <- scratch for copy_loop */ ldr r3, _bss_start_ofs