Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
| 5 | * |
| 6 | * (C) Copyright 2010 |
| 7 | * Texas Instruments, <www.ti.com> |
| 8 | * Aneesh V <aneesh@ti.com> |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
Tom Rini | 2f41ade | 2019-01-22 17:09:26 -0500 | [diff] [blame^] | 11 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\ |
| 12 | LENGTH = IMAGE_MAX_SIZE } |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +0000 | [diff] [blame] | 13 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 14 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 15 | |
| 16 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 17 | OUTPUT_ARCH(arm) |
| 18 | ENTRY(_start) |
| 19 | SECTIONS |
| 20 | { |
| 21 | .text : |
| 22 | { |
| 23 | __start = .; |
Benoît Thébaudeau | eeadd3f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 24 | *(.vectors) |
Benoît Thébaudeau | 1a9a91d | 2013-04-11 09:36:03 +0000 | [diff] [blame] | 25 | arch/arm/cpu/arm1136/start.o (.text*) |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +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 |
| 34 | . = ALIGN(4); |
| 35 | __image_copy_end = .; |
Albert ARIBAUD | d0b5d9d | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 36 | |
| 37 | .end : |
| 38 | { |
| 39 | *(.__end) |
| 40 | } |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +0000 | [diff] [blame] | 41 | |
| 42 | .bss : |
| 43 | { |
| 44 | . = ALIGN(4); |
| 45 | __bss_start = .; |
| 46 | *(.bss*) |
| 47 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 48 | __bss_end = .; |
Stefano Babic | d41924a | 2012-10-10 21:11:43 +0000 | [diff] [blame] | 49 | } >.sdram |
| 50 | } |