Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
Albert ARIBAUD | fd2c981 | 2013-04-12 05:14:31 +0000 | [diff] [blame] | 12 | LENGTH = CONFIG_SPL_MAX_FOOTPRINT } |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 13 | |
| 14 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 15 | OUTPUT_ARCH(arm) |
| 16 | ENTRY(_start) |
| 17 | SECTIONS |
| 18 | { |
Heiko Schocher | b22c74b | 2012-03-07 04:10:00 +0000 | [diff] [blame] | 19 | . = CONFIG_SPL_TEXT_BASE; |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 20 | |
| 21 | . = ALIGN(4); |
| 22 | .text : |
| 23 | { |
| 24 | __start = .; |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 25 | *(.vectors) |
Benoît Thébaudeau | 3954db8 | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 26 | arch/arm/cpu/arm926ejs/start.o (.text*) |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +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 |
| 35 | . = ALIGN(4); |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 36 | .rel.dyn : { |
| 37 | __rel_dyn_start = .; |
| 38 | *(.rel*) |
| 39 | __rel_dyn_end = .; |
| 40 | } >.sram |
| 41 | |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 42 | .bss : |
| 43 | { |
| 44 | . = ALIGN(4); |
| 45 | __bss_start = .; |
| 46 | *(.bss*) |
| 47 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 48 | __bss_end = .; |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 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 | } |
Heiko Schocher | 6c1b119 | 2011-11-01 20:00:35 +0000 | [diff] [blame] | 57 | } |