From patchwork Sat Feb 7 18:51:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 437604 X-Patchwork-Delegate: sjg@chromium.org 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 6A48F14018C for ; Sun, 8 Feb 2015 05:58:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52B5B4B624; Sat, 7 Feb 2015 19:58:02 +0100 (CET) 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 Dyol0Jh6ucGv; Sat, 7 Feb 2015 19:58:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF4F34B652; Sat, 7 Feb 2015 19:57:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34D794A048 for ; Sat, 7 Feb 2015 19:57:43 +0100 (CET) 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 3VQrSR_rRRSX for ; Sat, 7 Feb 2015 19:57:43 +0100 (CET) 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-oi0-f74.google.com (mail-oi0-f74.google.com [209.85.218.74]) by theia.denx.de (Postfix) with ESMTPS id 91AA34A049 for ; Sat, 7 Feb 2015 19:57:39 +0100 (CET) Received: by mail-oi0-f74.google.com with SMTP id a141so3325055oig.1 for ; Sat, 07 Feb 2015 10:57:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tPlV2luHjLV6FyBNnbePtRFEJ/bmZEJny8J1zK5iH0E=; b=l+MPII6SEA6jk83ORj0oDnPeZYKCRN+jc2QDM0ZvD3na3j/H+HCzi7MauDABOjK3DE jr54aa/jkJmdqQPDgrk/8Z4RYmqc1UFc0tC9IhDixBE42KKxT39G5SMeEkmCta4/FbNh SJXAQuKsckVDv5IN1+3NblH7b3ofMHGcncVsIffomDe/5fcPaSWXjAhBTfp5hROTD+ZV 9YkXCRFn6rV8dc0cjIAj3hLP+rWXJzr5fmg9FFGP5kW4vfPBdkjKaoGQceOMuLBrDMT2 MNLxZ8WB9v+Ncwif48wvIIonxZqmoLI28MvxUtL9kyUWHR/IjqG0JP5La/WjqEuYRu+0 vp4Q== X-Gm-Message-State: ALoCoQngkbjFmYHv5Y3HMQuX22kC5ZTtPAlV+9evEt5lEJwWvOQrfkZkO6ippy9u8Tf4NvUEyqX1 X-Received: by 10.50.30.106 with SMTP id r10mr6649687igh.0.1423335458268; Sat, 07 Feb 2015 10:57:38 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id s10si1144881qcl.3.2015.02.07.10.57.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Feb 2015 10:57:38 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id kefVZ5vU.1; Sat, 07 Feb 2015 10:57:38 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 5932322129A; Sat, 7 Feb 2015 11:52:16 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Sat, 7 Feb 2015 11:51:44 -0700 Message-Id: <1423335112-24585-12-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1423335112-24585-1-git-send-email-sjg@chromium.org> References: <1423335112-24585-1-git-send-email-sjg@chromium.org> Cc: Kim Phillips , Kumar Gala , Andy Fleming , Stefan Roese Subject: [U-Boot] [PATCH v2 11/19] powerpc: ppc4xx: Allow the end of u-boot.bin to be found X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Define an _end symbol indicating the end of u-boot.bin. Also add some dummy words into the link script to ensure that u-boot.bin will always extend that far. There may be a better way of doing this. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/ppc4xx/u-boot.lds | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/ppc4xx/u-boot.lds b/arch/powerpc/cpu/ppc4xx/u-boot.lds index 8773178..1980508 100644 --- a/arch/powerpc/cpu/ppc4xx/u-boot.lds +++ b/arch/powerpc/cpu/ppc4xx/u-boot.lds @@ -76,9 +76,13 @@ SECTIONS . = ALIGN(256); __init_begin = .; .text.init : { *(.text.init) } - .data.init : { *(.data.init) } - . = ALIGN(256); + .data.init : { + *(.data.init) + . = ALIGN(256); + LONG(0) LONG(0) /* Extend u-boot.bin to here */ + } __init_end = .; + _end = .; #ifndef CONFIG_SPL #ifdef CONFIG_440