Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [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> |
| 9 | * |
| 10 | * (C) 2013 Atmel Corporation |
| 11 | * Bo Shen <voice.shen@atmel.com> |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 12 | */ |
| 13 | |
Tom Rini | 2aaa27d | 2019-01-22 17:09:26 -0500 | [diff] [blame] | 14 | MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE, \ |
| 15 | LENGTH = IMAGE_MAX_SIZE } |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 16 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 17 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 18 | |
| 19 | OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") |
| 20 | OUTPUT_ARCH(arm) |
| 21 | ENTRY(_start) |
| 22 | SECTIONS |
| 23 | { |
| 24 | .text : |
| 25 | { |
| 26 | __start = .; |
Benoît Thébaudeau | 3f7740f | 2014-08-21 15:43:11 +0200 | [diff] [blame] | 27 | *(.vectors) |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 28 | arch/arm/cpu/armv7/start.o (.text*) |
| 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 |
| 37 | |
| 38 | . = ALIGN(4); |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 39 | __u_boot_list : { KEEP(*(SORT(__u_boot_list*))) } > .sram |
Tom Rini | 0ed608e | 2016-03-15 17:56:29 -0400 | [diff] [blame] | 40 | |
| 41 | . = ALIGN(4); |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 42 | __image_copy_end = .; |
Albert ARIBAUD | 9d25fa4 | 2014-02-22 17:53:42 +0100 | [diff] [blame] | 43 | |
| 44 | .end : |
| 45 | { |
| 46 | *(.__end) |
| 47 | } >.sram |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 48 | |
Wenyou Yang | 608b4eb | 2017-03-24 11:34:06 +0800 | [diff] [blame] | 49 | _image_binary_end = .; |
| 50 | |
Bo Shen | f92b298 | 2013-11-15 11:12:38 +0800 | [diff] [blame] | 51 | .bss : |
| 52 | { |
| 53 | . = ALIGN(4); |
| 54 | __bss_start = .; |
| 55 | *(.bss*) |
| 56 | . = ALIGN(4); |
| 57 | __bss_end = .; |
| 58 | } >.sdram |
| 59 | } |