Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 |
| 3 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 4 | * Tom Cubie <tangliang@allwinnertech.com> |
| 5 | * |
| 6 | * Based on omap-common/u-boot-spl.lds: |
| 7 | * |
| 8 | * (C) Copyright 2002 |
| 9 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 10 | * |
| 11 | * (C) Copyright 2010 |
| 12 | * Texas Instruments, <www.ti.com> |
| 13 | * Aneesh V <aneesh@ti.com> |
| 14 | * |
| 15 | * SPDX-License-Identifier: GPL-2.0+ |
| 16 | */ |
| 17 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
| 18 | LENGTH = CONFIG_SPL_MAX_SIZE } |
| 19 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 20 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 21 | |
| 22 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 23 | OUTPUT_ARCH(arm) |
| 24 | ENTRY(_start) |
| 25 | SECTIONS |
| 26 | { |
| 27 | .text : |
| 28 | { |
| 29 | __start = .; |
Hans de Goede | 85089a2 | 2014-06-09 11:36:54 +0200 | [diff] [blame] | 30 | *(.vectors) |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 31 | arch/arm/cpu/armv7/start.o (.text) |
| 32 | *(.text*) |
| 33 | } > .sram |
| 34 | |
| 35 | . = ALIGN(4); |
| 36 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 37 | |
| 38 | . = ALIGN(4); |
| 39 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 40 | |
| 41 | . = ALIGN(4); |
Hans de Goede | 3352b22 | 2014-06-13 22:55:49 +0200 | [diff] [blame] | 42 | .u_boot_list : { |
| 43 | KEEP(*(SORT(.u_boot_list*))); |
| 44 | } > .sram |
| 45 | |
| 46 | . = ALIGN(4); |
Ian Campbell | 140d832 | 2014-05-05 11:52:30 +0100 | [diff] [blame] | 47 | __image_copy_end = .; |
| 48 | _end = .; |
| 49 | |
| 50 | .bss : |
| 51 | { |
| 52 | . = ALIGN(4); |
| 53 | __bss_start = .; |
| 54 | *(.bss*) |
| 55 | . = ALIGN(4); |
| 56 | __bss_end = .; |
| 57 | } > .sdram |
| 58 | } |