blob: 73cd97a1b1de2cb78651b789b6ae0b383522b7bb [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 = .;
Albert ARIBAUD9d25fa42014-02-22 17:53:42 +010044
45 .end :
46 {
47 *(.__end)
48 } >.sram
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000049
50 .bss :
51 {
52 . = ALIGN(4);
53 __bss_start = .;
54 *(.bss*)
55 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000056 __bss_end = .;
Rajeshwari Shindee44ebd02012-07-03 20:02:53 +000057 } >.sram
58}