blob: 8c497792ee9648d9b05fc8ee5379ab1ed69063f0 [file] [log] [blame]
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +00001/*
2 * (C) Copyright 2002
3 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4 *
5 * Copyright (C) 2012 Samsung Electronics
6 *
7 * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
8 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000010 */
11
12MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \
Albert ARIBAUDeac579d2013-04-12 05:14:33 +000013 LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000014
15OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
16OUTPUT_ARCH(arm)
17ENTRY(_start)
18
19SECTIONS
20{
21 .text :
22 {
23 __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*)
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000026 *(.text*)
27 } >.sram
28 . = ALIGN(4);
29
30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
31 . = ALIGN(4);
32
33 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
34 . = ALIGN(4);
35
Marek Vasut55675142012-10-12 10:27:03 +000036 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000037 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000038 } >.sram
39 . = ALIGN(4);
40
Simon Glass5d3be0f2017-02-08 05:43:46 -070041 .machine_param : { *(.machine_param) } >.sram
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000042 . = ALIGN(4);
43
44 __image_copy_end = .;
Albert ARIBAUDd0b5d9d2014-02-22 17:53:42 +010045
46 .end :
47 {
48 *(.__end)
49 } >.sram
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000050
51 .bss :
52 {
53 . = ALIGN(4);
54 __bss_start = .;
55 *(.bss*)
56 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000057 __bss_end = .;
Rajeshwari Shinde78fbcc92012-07-03 20:02:53 +000058 } >.sram
59}