blob: 569704c317e9f8964d507b77278ce1adbe118361 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roesec6bc1db2012-01-03 16:49:01 +01002/*
Stefan Roese7618ad02015-08-18 09:27:17 +02003 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
4 *
Stefan Roesec6bc1db2012-01-03 16:49:01 +01005 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
6 * on behalf of DENX Software Engineering GmbH
7 *
8 * January 2004 - Changed to support H4 device
9 * Copyright (c) 2004-2008 Texas Instruments
10 *
11 * (C) Copyright 2002
12 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Stefan Roesec6bc1db2012-01-03 16:49:01 +010013 */
14
Stefan Roese7618ad02015-08-18 09:27:17 +020015MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
16 LENGTH = CONFIG_SPL_MAX_SIZE }
17
Stefan Roesec6bc1db2012-01-03 16:49:01 +010018OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
19OUTPUT_ARCH(arm)
20ENTRY(_start)
21SECTIONS
22{
Stefan Roese7618ad02015-08-18 09:27:17 +020023 .text :
Stefan Roesec6bc1db2012-01-03 16:49:01 +010024 {
Stefan Roese7618ad02015-08-18 09:27:17 +020025 __start = .;
Albert ARIBAUD9852cc62014-04-15 16:13:51 +020026 *(.vectors)
Stefan Roese7618ad02015-08-18 09:27:17 +020027 CPUDIR/spear/start.o (.text*)
Benoît Thébaudeau3954db82013-04-11 09:36:03 +000028 *(.text*)
Stefan Roese7618ad02015-08-18 09:27:17 +020029 } > .sram
Stefan Roesec6bc1db2012-01-03 16:49:01 +010030
31 . = ALIGN(4);
Stefan Roese7618ad02015-08-18 09:27:17 +020032 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
Stefan Roesec6bc1db2012-01-03 16:49:01 +010033
34 . = ALIGN(4);
Stefan Roese7618ad02015-08-18 09:27:17 +020035 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
Stefan Roesec6bc1db2012-01-03 16:49:01 +010036
37 . = ALIGN(4);
Stefan Roese7618ad02015-08-18 09:27:17 +020038 .u_boot_list : {
39 KEEP(*(SORT(.u_boot_list*)));
40 } > .sram
Stefan Roesec6bc1db2012-01-03 16:49:01 +010041
Stefan Roese7618ad02015-08-18 09:27:17 +020042 . = ALIGN(4);
43 __image_copy_end = .;
44 _end = .;
Stefan Roesec6bc1db2012-01-03 16:49:01 +010045
Stefan Roese7618ad02015-08-18 09:27:17 +020046 .bss :
47 {
Stefan Roesec6bc1db2012-01-03 16:49:01 +010048 . = ALIGN(4);
49 __bss_start = .;
50 *(.bss*)
51 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000052 __bss_end = .;
Stefan Roese7618ad02015-08-18 09:27:17 +020053 } > .sram
Stefan Roesec6bc1db2012-01-03 16:49:01 +010054}