2 * (C) Copyright 2012 Lothar Waßmann <LW@KARO-electronics.de>
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
30 *(.__image_copy_start)
32 CPUDIR/start.o (.text*)
34 KEEP(BOARDDIR/lowlevel_init.o (.text*))
38 #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT) || defined(CONFIG_ARMV7_PSCI)
40 #ifndef CONFIG_ARMV7_SECURE_BASE
41 #define CONFIG_ARMV7_SECURE_BASE
49 .secure_text CONFIG_ARMV7_SECURE_BASE :
50 AT(ADDR(.__secure_start) + SIZEOF(.__secure_start))
55 . = LOADADDR(.__secure_start) +
56 SIZEOF(.__secure_start) +
60 .__secure_end : AT(__secure_end_lma) {
62 LONG(0x1d1071c); /* Must output something to reset LMA */
67 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
76 KEEP(*(SORT(.u_boot_list*)));
100 /* Workaround for an apparent bug in i.MX53 ROM Code,
101 * that skips loading the last block if it doesn't
102 * end on a 4KiB boundary.
111 _image_binary_end = .;
114 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
115 * __bss_base and __bss_limit are for linker only (overlay ordering)
118 .bss_start __rel_dyn_start (OVERLAY) : {
119 KEEP(*(.__bss_start));
123 .bss __bss_base (OVERLAY) : {
128 .bss_end __bss_limit (OVERLAY) : {
132 .dynsym _image_binary_end : { *(.dynsym) }
133 .dynbss : { *(.dynbss) }
134 .dynstr : { *(.dynstr*) }
135 .dynamic : { *(.dynamic*) }
137 .interp : { *(.interp*) }
138 .gnu.hash : { *(.gnu.hash) }
140 .ARM.exidx : { *(.ARM.exidx*) }
141 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }