blob: 88d81f9b98d61cfdf562e077f7666800d71dadaf [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Aneesh Vbcae7212011-07-21 09:10:21 -04002/*
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>
Aneesh Vbcae7212011-07-21 09:10:21 -04009 */
10
Tom Rini2f41ade2019-01-22 17:09:26 -050011MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
12 LENGTH = IMAGE_MAX_SIZE }
Aneesh Vbcae7212011-07-21 09:10:21 -040013MEMORY { .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 {
Pavel Machek9f8a6e72012-08-30 19:20:22 +020023 __start = .;
Benoît Thébaudeaueeadd3f2014-08-21 15:43:11 +020024 *(.vectors)
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000025 arch/arm/cpu/armv7/start.o (.text*)
Pavel Machek9f8a6e72012-08-30 19:20:22 +020026 *(.text*)
Aneesh Vbcae7212011-07-21 09:10:21 -040027 } >.sram
28
29 . = ALIGN(4);
30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31
32 . = ALIGN(4);
33 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut55675142012-10-12 10:27:03 +000034
Aneesh Vbcae7212011-07-21 09:10:21 -040035 . = ALIGN(4);
Heiko Schocher6789e842013-10-22 11:03:18 +020036 .u_boot_list : {
Tom Rinif8a48262016-03-15 17:56:29 -040037 KEEP(*(SORT(.u_boot_list*)));
Heiko Schocher6789e842013-10-22 11:03:18 +020038 } >.sram
Tom Rini5e995c02013-11-15 12:20:33 -050039
Heiko Schocher6789e842013-10-22 11:03:18 +020040 . = ALIGN(4);
Aneesh Vbcae7212011-07-21 09:10:21 -040041 __image_copy_end = .;
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010042
43 .end :
44 {
45 *(.__end)
46 }
Aneesh Vbcae7212011-07-21 09:10:21 -040047
Lokesh Vutla4d451c02017-02-10 20:37:17 +053048 _image_binary_end = .;
49
Aneesh Vbcae7212011-07-21 09:10:21 -040050 .bss :
51 {
52 . = ALIGN(4);
53 __bss_start = .;
54 *(.bss*)
55 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000056 __bss_end = .;
Aneesh Vbcae7212011-07-21 09:10:21 -040057 } >.sdram
58}