Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Christian Riesch | 3d2c8e6 | 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 | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
Tom Rini | 2f41ade | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 10 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\ |
Albert ARIBAUD | b7b5f1a | 2013-04-12 05:14:32 +0000 | [diff] [blame] | 11 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 12 | |
Adam Ford | 15b8c75 | 2019-02-25 21:53:46 -0600 | [diff] [blame] | 13 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 14 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 15 | |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 16 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 17 | OUTPUT_ARCH(arm) |
| 18 | ENTRY(_start) |
| 19 | SECTIONS |
| 20 | { |
| 21 | . = 0x00000000; |
| 22 | |
| 23 | . = ALIGN(4); |
| 24 | .text : |
| 25 | { |
| 26 | __start = .; |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 27 | *(.vectors) |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 28 | arch/arm/cpu/arm926ejs/start.o (.text*) |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 29 | *(.text*) |
| 30 | } >.sram |
| 31 | |
| 32 | . = ALIGN(4); |
| 33 | .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram |
| 34 | |
| 35 | . = ALIGN(4); |
| 36 | .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 37 | |
| 38 | . = ALIGN(4); |
Fabien Parent | 5d7cdf3 | 2016-11-29 14:23:40 +0100 | [diff] [blame] | 39 | .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram |
| 40 | |
| 41 | . = ALIGN(4); |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 42 | .rel.dyn : { |
| 43 | __rel_dyn_start = .; |
| 44 | *(.rel*) |
| 45 | __rel_dyn_end = .; |
| 46 | } >.sram |
| 47 | |
Adam Ford | 15b8c75 | 2019-02-25 21:53:46 -0600 | [diff] [blame] | 48 | __image_copy_end = .; |
| 49 | |
| 50 | .end : |
| 51 | { |
| 52 | *(.__end) |
| 53 | } |
| 54 | |
| 55 | _image_binary_end = .; |
| 56 | |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 57 | .bss : |
| 58 | { |
| 59 | . = ALIGN(4); |
| 60 | __bss_start = .; |
| 61 | *(.bss*) |
| 62 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 63 | __bss_end = .; |
Adam Ford | 15b8c75 | 2019-02-25 21:53:46 -0600 | [diff] [blame] | 64 | } >.sdram |
Christian Riesch | 3d2c8e6 | 2011-12-09 09:47:37 +0000 | [diff] [blame] | 65 | } |