From patchwork Thu Apr 3 06:01:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 336522 X-Patchwork-Delegate: sbabic@denx.de 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 2546714010A for ; Thu, 3 Apr 2014 17:02:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F6424BB8A; Thu, 3 Apr 2014 08:02:20 +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 ToGAtnLt-qr8; Thu, 3 Apr 2014 08:02:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6DFEC4BB8B; Thu, 3 Apr 2014 08:01:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2E2474BB4C for ; Thu, 3 Apr 2014 08:01:32 +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 XDjBcFpdVIzB for ; Thu, 3 Apr 2014 08:01:27 +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-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id 7AE224BA72 for ; Thu, 3 Apr 2014 08:01:22 +0200 (CEST) Received: by mail-pd0-f171.google.com with SMTP id r10so1283972pdi.30 for ; Wed, 02 Apr 2014 23:01:20 -0700 (PDT) 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=WZxarq9HJMncDQG4G0mEngIbWr7Mn8I4k4Ql7NP00L4=; b=lzB4g9qB5DbbkS3YrvgRzcKxgan+PuK5kyuUliMD9XRSjSBNH44J8TZtl7EfexiAMD baiObInJc94vxWvDuo+QUVMjr98sW9ioBtaLkURz2juQdkRUdzNgYhrQQNLih0krsfp6 kkRZcVqQqLNSBxUR2x+q1ptPEHOcAzLv+SB5sD0YIyklnL14GMmmYFHqDykRgmdo6+ep dyttsqUj/hbVZxx1UdRYvyCsvOHGZVs6t7GHx05DCEm2/ZYJoRbnFrI3UricNJ1dCL8n Gd77EcdnB6WOJQJ9sFn1Qb5PAC+d1m0mwaFtObaUbrshNgbx+7jI9CmCSrgawAPQKrSa KJAg== X-Gm-Message-State: ALoCoQnTzTaSftqNlqjZSN7c6SlP8PTryqUD1naac3g8znnFuLHHliAhdMkDG/fjFpqHu6wUQsfi X-Received: by 10.66.193.202 with SMTP id hq10mr4964233pac.57.1396504880780; Wed, 02 Apr 2014 23:01:20 -0700 (PDT) Received: from tharvey-gw.gw (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by mx.google.com with ESMTPSA id ug9sm8598838pbc.11.2014.04.02.23.01.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 23:01:20 -0700 (PDT) From: Tim Harvey To: Stefano Babic Date: Wed, 2 Apr 2014 23:01:03 -0700 Message-Id: <1396504871-1454-4-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1396504871-1454-1-git-send-email-tharvey@gateworks.com> References: <1396504871-1454-1-git-send-email-tharvey@gateworks.com> Cc: Otavio Salvador , u-boot@lists.denx.de, Tom Rini , Stefan Roese Subject: [U-Boot] [PATCH 03/11] MX6: provide linker script for SPL 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 Signed-off-by: Tim Harvey --- arch/arm/cpu/armv7/mx6/u-boot-spl.lds | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 arch/arm/cpu/armv7/mx6/u-boot-spl.lds diff --git a/arch/arm/cpu/armv7/mx6/u-boot-spl.lds b/arch/arm/cpu/armv7/mx6/u-boot-spl.lds new file mode 100644 index 0000000..02aa129 --- /dev/null +++ b/arch/arm/cpu/armv7/mx6/u-boot-spl.lds @@ -0,0 +1,52 @@ +/* + * (C) Copyright 2002 + * Gary Jennejohn, DENX Software Engineering, + * + * (C) Copyright 2010 + * Texas Instruments, + * Aneesh V + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ + LENGTH = CONFIG_SPL_MAX_SIZE } +MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ + LENGTH = CONFIG_SPL_BSS_MAX_SIZE } + +OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") +OUTPUT_ARCH(arm) +ENTRY(_start) +SECTIONS +{ + .text : + { + __start = .; + arch/arm/cpu/armv7/start.o (.text*) + *(.text*) + } >.sram + + . = ALIGN(4); + .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram + + . = ALIGN(4); + .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram + + . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*_i2c_*))); + } >.sram + + . = ALIGN(4); + __image_copy_end = .; + _end = .; + + .bss : + { + . = ALIGN(4); + __bss_start = .; + *(.bss*) + . = ALIGN(4); + __bss_end = .; + } >.sdram +}