2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-01-03 15:49:01 +00:00
|
|
|
/*
|
2015-08-18 07:27:17 +00:00
|
|
|
* Copyright (C) 2015 Stefan Roese <sr@denx.de>
|
|
|
|
*
|
2012-01-03 15:49:01 +00:00
|
|
|
* Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
|
|
|
|
* on behalf of DENX Software Engineering GmbH
|
|
|
|
*
|
|
|
|
* January 2004 - Changed to support H4 device
|
|
|
|
* Copyright (c) 2004-2008 Texas Instruments
|
|
|
|
*
|
|
|
|
* (C) Copyright 2002
|
|
|
|
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
|
|
|
|
*/
|
|
|
|
|
2015-08-18 07:27:17 +00:00
|
|
|
MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
|
|
|
|
LENGTH = CONFIG_SPL_MAX_SIZE }
|
|
|
|
|
2012-01-03 15:49:01 +00:00
|
|
|
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
2015-08-18 07:27:17 +00:00
|
|
|
.text :
|
2012-01-03 15:49:01 +00:00
|
|
|
{
|
2015-08-18 07:27:17 +00:00
|
|
|
__start = .;
|
2014-04-15 14:13:51 +00:00
|
|
|
*(.vectors)
|
2015-08-18 07:27:17 +00:00
|
|
|
CPUDIR/spear/start.o (.text*)
|
2013-04-11 09:36:03 +00:00
|
|
|
*(.text*)
|
2015-08-18 07:27:17 +00:00
|
|
|
} > .sram
|
2012-01-03 15:49:01 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2015-08-18 07:27:17 +00:00
|
|
|
.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
|
2012-01-03 15:49:01 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2015-08-18 07:27:17 +00:00
|
|
|
.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
|
2012-01-03 15:49:01 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
2015-08-18 07:27:17 +00:00
|
|
|
.u_boot_list : {
|
|
|
|
KEEP(*(SORT(.u_boot_list*)));
|
|
|
|
} > .sram
|
2012-01-03 15:49:01 +00:00
|
|
|
|
2015-08-18 07:27:17 +00:00
|
|
|
. = ALIGN(4);
|
|
|
|
__image_copy_end = .;
|
|
|
|
_end = .;
|
2012-01-03 15:49:01 +00:00
|
|
|
|
2015-08-18 07:27:17 +00:00
|
|
|
.bss :
|
|
|
|
{
|
2012-01-03 15:49:01 +00:00
|
|
|
. = ALIGN(4);
|
|
|
|
__bss_start = .;
|
|
|
|
*(.bss*)
|
|
|
|
. = ALIGN(4);
|
2013-03-14 06:54:53 +00:00
|
|
|
__bss_end = .;
|
2015-08-18 07:27:17 +00:00
|
|
|
} > .sram
|
2012-01-03 15:49:01 +00:00
|
|
|
}
|