xref: /openbmc/u-boot/board/samsung/common/exynos-uboot-spl.lds (revision 2f41ade79e5969ebea03a7dcadbeae8e03787d7e)
183d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */
26e50e5caSRajeshwari Shinde/*
36e50e5caSRajeshwari Shinde * (C) Copyright 2002
46e50e5caSRajeshwari Shinde * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
56e50e5caSRajeshwari Shinde *
66e50e5caSRajeshwari Shinde * Copyright (C) 2012 Samsung Electronics
76e50e5caSRajeshwari Shinde *
86e50e5caSRajeshwari Shinde * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
96e50e5caSRajeshwari Shinde */
106e50e5caSRajeshwari Shinde
11*2f41ade7STom RiniMEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE, \
126e50e5caSRajeshwari Shinde		LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
136e50e5caSRajeshwari Shinde
146e50e5caSRajeshwari ShindeOUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
156e50e5caSRajeshwari ShindeOUTPUT_ARCH(arm)
166e50e5caSRajeshwari ShindeENTRY(_start)
176e50e5caSRajeshwari Shinde
186e50e5caSRajeshwari ShindeSECTIONS
196e50e5caSRajeshwari Shinde{
206e50e5caSRajeshwari Shinde	.text :
216e50e5caSRajeshwari Shinde	{
226e50e5caSRajeshwari Shinde		__start = .;
23eeadd3feSBenoît Thébaudeau		*(.vectors)
246e50e5caSRajeshwari Shinde		arch/arm/cpu/armv7/start.o (.text*)
256e50e5caSRajeshwari Shinde		*(.text*)
266e50e5caSRajeshwari Shinde	} >.sram
276e50e5caSRajeshwari Shinde	. = ALIGN(4);
286e50e5caSRajeshwari Shinde
296e50e5caSRajeshwari Shinde	.rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
306e50e5caSRajeshwari Shinde	. = ALIGN(4);
316e50e5caSRajeshwari Shinde
326e50e5caSRajeshwari Shinde	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
336e50e5caSRajeshwari Shinde	. = ALIGN(4);
346e50e5caSRajeshwari Shinde
356e50e5caSRajeshwari Shinde	.u_boot_list : {
366e50e5caSRajeshwari Shinde		KEEP(*(SORT(.u_boot_list*)));
376e50e5caSRajeshwari Shinde	} >.sram
386e50e5caSRajeshwari Shinde	. = ALIGN(4);
396e50e5caSRajeshwari Shinde
405d3be0f8SSimon Glass	.machine_param : { *(.machine_param) } >.sram
416e50e5caSRajeshwari Shinde	. = ALIGN(4);
426e50e5caSRajeshwari Shinde
436e50e5caSRajeshwari Shinde	__image_copy_end = .;
44d0b5d9daSAlbert ARIBAUD
45d0b5d9daSAlbert ARIBAUD	.end :
46d0b5d9daSAlbert ARIBAUD	{
47d0b5d9daSAlbert ARIBAUD		*(.__end)
48d0b5d9daSAlbert ARIBAUD	} >.sram
496e50e5caSRajeshwari Shinde
506e50e5caSRajeshwari Shinde	.bss :
516e50e5caSRajeshwari Shinde	{
526e50e5caSRajeshwari Shinde		. = ALIGN(4);
536e50e5caSRajeshwari Shinde		__bss_start = .;
546e50e5caSRajeshwari Shinde		*(.bss*)
556e50e5caSRajeshwari Shinde		. = ALIGN(4);
566e50e5caSRajeshwari Shinde		__bss_end = .;
576e50e5caSRajeshwari Shinde	} >.sram
586e50e5caSRajeshwari Shinde}
59