Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 4 | * |
| 5 | * (C) Copyright 2010 |
| 6 | * Texas Instruments, <www.ti.com> |
| 7 | * Aneesh V <aneesh@ti.com> |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
| 13 | LENGTH = CONFIG_SPL_MAX_SIZE } |
| 14 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 15 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 16 | |
| 17 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 18 | OUTPUT_ARCH(arm) |
| 19 | ENTRY(_start) |
| 20 | SECTIONS |
| 21 | { |
| 22 | .text : |
| 23 | { |
| 24 | __start = .; |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 25 | *(.vectors) |
Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 26 | arch/arm/cpu/armv7/start.o (.text) |
| 27 | *(.text*) |
| 28 | } >.sram |
| 29 | |
| 30 | . = ALIGN(4); |
| 31 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 32 | |
| 33 | . = ALIGN(4); |
| 34 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
| 35 | |
| 36 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 37 | KEEP(*(SORT(.u_boot_list*))); |
Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 38 | } >.sram |
| 39 | |
| 40 | . = ALIGN(4); |
| 41 | __image_copy_end = .; |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 42 | |
| 43 | .end : |
| 44 | { |
| 45 | *(.__end) |
| 46 | } >.sram |
Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 47 | |
| 48 | .bss : |
| 49 | { |
| 50 | . = ALIGN(4); |
| 51 | __bss_start = .; |
| 52 | *(.bss*) |
| 53 | . = ALIGN(4); |
Tom Rini | 0ce033d | 2013-03-18 12:31:00 -0400 | [diff] [blame] | 54 | __bss_end = .; |
Albert ARIBAUD | 65cdd64 | 2013-02-25 00:58:58 +0000 | [diff] [blame] | 55 | } >.sdram |
| 56 | } |