Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 4 | * |
| 5 | * (C) Copyright 2008 |
| 6 | * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de> |
| 7 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
Albert ARIBAUD | b7b5f1a | 2013-04-12 05:14:32 +0000 | [diff] [blame] | 12 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 13 | |
| 14 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 15 | OUTPUT_ARCH(arm) |
| 16 | ENTRY(_start) |
| 17 | SECTIONS |
| 18 | { |
| 19 | . = 0x00000000; |
| 20 | |
| 21 | . = ALIGN(4); |
| 22 | .text : |
| 23 | { |
| 24 | __start = .; |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 25 | *(.vectors) |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 26 | arch/arm/cpu/arm926ejs/start.o (.text*) |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 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 |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 35 | |
| 36 | . = ALIGN(4); |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 37 | .rel.dyn : { |
| 38 | __rel_dyn_start = .; |
| 39 | *(.rel*) |
| 40 | __rel_dyn_end = .; |
| 41 | } >.sram |
| 42 | |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 43 | .bss : |
| 44 | { |
| 45 | . = ALIGN(4); |
| 46 | __bss_start = .; |
| 47 | *(.bss*) |
| 48 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 49 | __bss_end = .; |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 50 | } >.sram |
| 51 | |
| 52 | __image_copy_end = .; |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 53 | |
| 54 | .end : |
| 55 | { |
| 56 | *(.__end) |
| 57 | } |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 58 | } |