Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 5 | * |
| 6 | * (C) Copyright 2008 |
| 7 | * Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de> |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
Albert ARIBAUD | a02e3cc | 2013-04-12 05:14:32 +0000 | [diff] [blame] | 11 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 12 | |
| 13 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 14 | OUTPUT_ARCH(arm) |
| 15 | ENTRY(_start) |
| 16 | SECTIONS |
| 17 | { |
| 18 | . = 0x00000000; |
| 19 | |
| 20 | . = ALIGN(4); |
| 21 | .text : |
| 22 | { |
| 23 | __start = .; |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 24 | *(.vectors) |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 25 | arch/arm/cpu/arm926ejs/start.o (.text*) |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 26 | *(.text*) |
| 27 | } >.sram |
| 28 | |
| 29 | . = ALIGN(4); |
| 30 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 31 | |
| 32 | . = ALIGN(4); |
| 33 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 34 | |
| 35 | . = ALIGN(4); |
Fabien Parent | d96020c | 2016-11-29 14:23:40 +0100 | [diff] [blame] | 36 | .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram |
| 37 | |
| 38 | . = ALIGN(4); |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 39 | .rel.dyn : { |
| 40 | __rel_dyn_start = .; |
| 41 | *(.rel*) |
| 42 | __rel_dyn_end = .; |
| 43 | } >.sram |
| 44 | |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 45 | .bss : |
| 46 | { |
| 47 | . = ALIGN(4); |
| 48 | __bss_start = .; |
| 49 | *(.bss*) |
| 50 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 51 | __bss_end = .; |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 52 | } >.sram |
| 53 | |
| 54 | __image_copy_end = .; |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 55 | |
| 56 | .end : |
| 57 | { |
| 58 | *(.__end) |
| 59 | } |
Christian Riesch | 63e341b | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 60 | } |