2 * Copyright (c) 2004-2008 Texas Instruments
5 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
7 * SPDX-License-Identifier: GPL-2.0+
12 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
17 #if defined(CONFIG_ARMV7_SECURE_BASE) && defined(CONFIG_ARMV7_NONSEC)
19 * If CONFIG_ARMV7_SECURE_BASE is true, secure code will not
20 * bundle with u-boot, and code offsets are fixed. Secure zone
21 * only needs to be copied from the loading address to
22 * CONFIG_ARMV7_SECURE_BASE, which is the linking and running
23 * address for secure code.
25 * If CONFIG_ARMV7_SECURE_BASE is undefined, the secure zone will
26 * be included in u-boot address space, and some absolute address
27 * were used in secure code. The absolute addresses of the secure
28 * code also needs to be relocated along with the accompanying u-boot
31 * So DISCARD is only for CONFIG_ARMV7_SECURE_BASE.
33 /DISCARD/ : { *(.rel._secure*) }
40 *(.__image_copy_start)
42 CPUDIR/start.o (.text*)
46 #ifdef CONFIG_ARMV7_NONSEC
48 #ifndef CONFIG_ARMV7_SECURE_BASE
49 #define CONFIG_ARMV7_SECURE_BASE
57 .secure_text CONFIG_ARMV7_SECURE_BASE :
58 AT(ADDR(.__secure_start) + SIZEOF(.__secure_start))
63 . = LOADADDR(.__secure_start) +
64 SIZEOF(.__secure_start) +
68 .__secure_end : AT(__secure_end_lma) {
70 LONG(0x1d1071c); /* Must output something to reset LMA */
75 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
88 KEEP(*(SORT(.u_boot_list*)));
93 .__efi_runtime_start : {
94 *(.__efi_runtime_start)
102 .__efi_runtime_stop : {
103 *(.__efi_runtime_stop)
106 .efi_runtime_rel_start :
108 *(.__efi_runtime_rel_start)
112 *(.relefi_runtime_text)
113 *(.relefi_runtime_data)
116 .efi_runtime_rel_stop :
118 *(.__efi_runtime_rel_stop)
147 _image_binary_end = .;
150 * Deprecated: this MMU section is used by pxa at present but
151 * should not be used by new boards/CPUs.
159 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
160 * __bss_base and __bss_limit are for linker only (overlay ordering)
163 .bss_start __rel_dyn_start (OVERLAY) : {
164 KEEP(*(.__bss_start));
168 .bss __bss_base (OVERLAY) : {
174 .bss_end __bss_limit (OVERLAY) : {
178 .dynsym _image_binary_end : { *(.dynsym) }
179 .dynbss : { *(.dynbss) }
180 .dynstr : { *(.dynstr*) }
181 .dynamic : { *(.dynamic*) }
183 .interp : { *(.interp*) }
184 .gnu.hash : { *(.gnu.hash) }
186 .ARM.exidx : { *(.ARM.exidx*) }
187 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }