blob: b7af29183a97c0c012c2107c93dcf0032c535431 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefano Babice9a05792012-10-10 21:11:43 +00002/*
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 Babice9a05792012-10-10 21:11:43 +00009 */
10
Tom Rini2aaa27d2019-01-22 17:09:26 -050011MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
12 LENGTH = IMAGE_MAX_SIZE }
Stefano Babice9a05792012-10-10 21:11:43 +000013MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
14 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
15
16OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
17OUTPUT_ARCH(arm)
18ENTRY(_start)
19SECTIONS
20{
21 .text :
22 {
23 __start = .;
Benoît Thébaudeau3f7740f2014-08-21 15:43:11 +020024 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000025 arch/arm/cpu/arm1136/start.o (.text*)
Stefano Babice9a05792012-10-10 21:11:43 +000026 *(.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 = .;
Ilias Apalodimas80808462024-05-28 09:18:27 +030036 _end = .;
Stefano Babice9a05792012-10-10 21:11:43 +000037
38 .bss :
39 {
40 . = ALIGN(4);
41 __bss_start = .;
42 *(.bss*)
43 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000044 __bss_end = .;
Stefano Babice9a05792012-10-10 21:11:43 +000045 } >.sdram
46}