blob: 9d3b57e98dbb71875372fca578b6b9a6b348e152 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +00002/*
3 * (C) Copyright 2002
4 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
5 *
6 * Copyright (C) 2012 Samsung Electronics
7 *
8 * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +00009 */
10
Tom Rini2aaa27d2019-01-22 17:09:26 -050011MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE, \
Albert ARIBAUD19a053d2013-04-12 05:14:33 +000012 LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000013
14OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
15OUTPUT_ARCH(arm)
16ENTRY(_start)
17
18SECTIONS
19{
20 .text :
21 {
22 __start = .;
Benoît Thébaudeau3f7740f2014-08-21 15:43:11 +020023 *(.vectors)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000024 arch/arm/cpu/armv7/start.o (.text*)
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000025 *(.text*)
26 } >.sram
27 . = ALIGN(4);
28
29 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
30 . = ALIGN(4);
31
32 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
33 . = ALIGN(4);
34
Andrew Scull5a9095c2022-05-30 10:00:04 +000035 __u_boot_list : {
36 KEEP(*(SORT(__u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000037 } >.sram
38 . = ALIGN(4);
39
Simon Glass8c0afb12017-02-08 05:43:46 -070040 .machine_param : { *(.machine_param) } >.sram
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000041 . = ALIGN(4);
42
43 __image_copy_end = .;
Ilias Apalodimas80808462024-05-28 09:18:27 +030044 _end = .;
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000045
46 .bss :
47 {
48 . = ALIGN(4);
49 __bss_start = .;
50 *(.bss*)
51 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000052 __bss_end = .;
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000053 } >.sram
54}