blob: e9da2a9dd18627b625b2fd576080161cb03af213 [file] [log] [blame]
Aneesh Vbcae7212011-07-21 09:10:21 -04001/*
2 * (C) Copyright 2002
3 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4 *
5 * (C) Copyright 2010
6 * Texas Instruments, <www.ti.com>
7 * Aneesh V <aneesh@ti.com>
8 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Aneesh Vbcae7212011-07-21 09:10:21 -040010 */
11
12MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
13 LENGTH = CONFIG_SPL_MAX_SIZE }
14MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
15 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
16
17OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
18OUTPUT_ARCH(arm)
19ENTRY(_start)
20SECTIONS
21{
22 .text :
23 {
Pavel Machek9f8a6e72012-08-30 19:20:22 +020024 __start = .;
Benoît Thébaudeaueeadd3f2014-08-21 15:43:11 +020025 *(.vectors)
Benoît Thébaudeau1a9a91d2013-04-11 09:36:03 +000026 arch/arm/cpu/armv7/start.o (.text*)
Pavel Machek9f8a6e72012-08-30 19:20:22 +020027 *(.text*)
Aneesh Vbcae7212011-07-21 09:10:21 -040028 } >.sram
29
30 . = ALIGN(4);
31 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
32
33 . = ALIGN(4);
34 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Marek Vasut55675142012-10-12 10:27:03 +000035
Aneesh Vbcae7212011-07-21 09:10:21 -040036 . = ALIGN(4);
Heiko Schocher6789e842013-10-22 11:03:18 +020037 .u_boot_list : {
Tom Rinif8a48262016-03-15 17:56:29 -040038 KEEP(*(SORT(.u_boot_list*)));
Heiko Schocher6789e842013-10-22 11:03:18 +020039 } >.sram
Tom Rini5e995c02013-11-15 12:20:33 -050040
Heiko Schocher6789e842013-10-22 11:03:18 +020041 . = ALIGN(4);
Aneesh Vbcae7212011-07-21 09:10:21 -040042 __image_copy_end = .;
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010043
44 .end :
45 {
46 *(.__end)
47 }
Aneesh Vbcae7212011-07-21 09:10:21 -040048
Lokesh Vutla4d451c02017-02-10 20:37:17 +053049 _image_binary_end = .;
50
Aneesh Vbcae7212011-07-21 09:10:21 -040051 .bss :
52 {
53 . = ALIGN(4);
54 __bss_start = .;
55 *(.bss*)
56 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000057 __bss_end = .;
Aneesh Vbcae7212011-07-21 09:10:21 -040058 } >.sdram
59}