Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | dd68a1d | 2013-08-05 16:00:38 +0200 | [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> |
Heiko Schocher | dd68a1d | 2013-08-05 16:00:38 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
| 11 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
| 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) |
Heiko Schocher | dd68a1d | 2013-08-05 16:00:38 +0200 | [diff] [blame] | 25 | arch/arm/cpu/arm926ejs/start.o (.text*) |
| 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 |
| 34 | |
| 35 | . = ALIGN(4); |
| 36 | .rel.dyn : { |
| 37 | __rel_dyn_start = .; |
| 38 | *(.rel*) |
| 39 | __rel_dyn_end = .; |
| 40 | } >.sram |
| 41 | |
| 42 | .bss : |
| 43 | { |
| 44 | . = ALIGN(4); |
| 45 | __bss_start = .; |
| 46 | *(.bss*) |
| 47 | . = ALIGN(4); |
| 48 | __bss_end = .; |
| 49 | } >.sram |
| 50 | |
| 51 | __image_copy_end = .; |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 52 | |
| 53 | .end : |
| 54 | { |
| 55 | *(.__end) |
| 56 | } >.sram |
Heiko Schocher | dd68a1d | 2013-08-05 16:00:38 +0200 | [diff] [blame] | 57 | } |