xref: /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds (revision 2fbdbda1c7c48aa622812054633afc6cdff91eab)
14ae8bc43SStefan Roese/*
2*2fbdbda1SStefan Roese * Copyright (C) 2015 Stefan Roese <sr@denx.de>
3*2fbdbda1SStefan Roese *
44ae8bc43SStefan Roese * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
54ae8bc43SStefan Roese * on behalf of DENX Software Engineering GmbH
64ae8bc43SStefan Roese *
74ae8bc43SStefan Roese * January 2004 - Changed to support H4 device
84ae8bc43SStefan Roese * Copyright (c) 2004-2008 Texas Instruments
94ae8bc43SStefan Roese *
104ae8bc43SStefan Roese * (C) Copyright 2002
114ae8bc43SStefan Roese * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
124ae8bc43SStefan Roese *
131a459660SWolfgang Denk * SPDX-License-Identifier:	GPL-2.0+
144ae8bc43SStefan Roese */
154ae8bc43SStefan Roese
16*2fbdbda1SStefan RoeseMEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
17*2fbdbda1SStefan Roese		LENGTH = CONFIG_SPL_MAX_SIZE }
18*2fbdbda1SStefan Roese
194ae8bc43SStefan RoeseOUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
204ae8bc43SStefan RoeseOUTPUT_ARCH(arm)
214ae8bc43SStefan RoeseENTRY(_start)
224ae8bc43SStefan RoeseSECTIONS
234ae8bc43SStefan Roese{
244ae8bc43SStefan Roese	.text      :
254ae8bc43SStefan Roese	{
26*2fbdbda1SStefan Roese		__start = .;
2741623c91SAlbert ARIBAUD		*(.vectors)
28*2fbdbda1SStefan Roese		CPUDIR/spear/start.o	(.text*)
291a9a91dcSBenoît Thébaudeau		*(.text*)
30*2fbdbda1SStefan Roese	} > .sram
314ae8bc43SStefan Roese
324ae8bc43SStefan Roese	. = ALIGN(4);
33*2fbdbda1SStefan Roese	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
344ae8bc43SStefan Roese
354ae8bc43SStefan Roese	. = ALIGN(4);
36*2fbdbda1SStefan Roese	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
374ae8bc43SStefan Roese
384ae8bc43SStefan Roese	. = ALIGN(4);
39*2fbdbda1SStefan Roese	.u_boot_list : {
40*2fbdbda1SStefan Roese		KEEP(*(SORT(.u_boot_list*)));
41*2fbdbda1SStefan Roese	} > .sram
424ae8bc43SStefan Roese
43*2fbdbda1SStefan Roese	. = ALIGN(4);
44*2fbdbda1SStefan Roese	__image_copy_end = .;
45*2fbdbda1SStefan Roese	_end = .;
464ae8bc43SStefan Roese
47*2fbdbda1SStefan Roese	.bss :
48*2fbdbda1SStefan Roese	{
494ae8bc43SStefan Roese		. = ALIGN(4);
504ae8bc43SStefan Roese		__bss_start = .;
514ae8bc43SStefan Roese		*(.bss*)
524ae8bc43SStefan Roese		. = ALIGN(4);
533929fb0aSSimon Glass		__bss_end = .;
54*2fbdbda1SStefan Roese	} > .sram
554ae8bc43SStefan Roese}
56