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 #ifndef CONFIG_CMDLINE
18 /DISCARD/ : { *(.u_boot_list_2_cmd_*) }
20 #if defined(CONFIG_ARMV7_SECURE_BASE) && defined(CONFIG_ARMV7_NONSEC)
22 * If CONFIG_ARMV7_SECURE_BASE is true, secure code will not
23 * bundle with u-boot, and code offsets are fixed. Secure zone
24 * only needs to be copied from the loading address to
25 * CONFIG_ARMV7_SECURE_BASE, which is the linking and running
26 * address for secure code.
28 * If CONFIG_ARMV7_SECURE_BASE is undefined, the secure zone will
29 * be included in u-boot address space, and some absolute address
30 * were used in secure code. The absolute addresses of the secure
31 * code also needs to be relocated along with the accompanying u-boot
34 * So DISCARD is only for CONFIG_ARMV7_SECURE_BASE.
36 /DISCARD/ : { *(.rel._secure*) }
43 *(.__image_copy_start)
45 CPUDIR/start.o (.text*)
49 #ifdef CONFIG_ARMV7_NONSEC
51 #ifndef CONFIG_ARMV7_SECURE_BASE
52 #define CONFIG_ARMV7_SECURE_BASE
60 .secure_text CONFIG_ARMV7_SECURE_BASE :
61 AT(ADDR(.__secure_start) + SIZEOF(.__secure_start))
66 . = LOADADDR(.__secure_start) +
67 SIZEOF(.__secure_start) +
71 .__secure_end : AT(__secure_end_lma) {
73 LONG(0x1d1071c); /* Must output something to reset LMA */
78 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
91 KEEP(*(SORT(.u_boot_list*)));
96 .__efi_runtime_start : {
97 *(.__efi_runtime_start)
105 .__efi_runtime_stop : {
106 *(.__efi_runtime_stop)
109 .efi_runtime_rel_start :
111 *(.__efi_runtime_rel_start)
115 *(.relefi_runtime_text)
116 *(.relefi_runtime_data)
119 .efi_runtime_rel_stop :
121 *(.__efi_runtime_rel_stop)
150 _image_binary_end = .;
153 * Deprecated: this MMU section is used by pxa at present but
154 * should not be used by new boards/CPUs.
162 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
163 * __bss_base and __bss_limit are for linker only (overlay ordering)
166 .bss_start __rel_dyn_start (OVERLAY) : {
167 KEEP(*(.__bss_start));
171 .bss __bss_base (OVERLAY) : {
177 .bss_end __bss_limit (OVERLAY) : {
181 .dynsym _image_binary_end : { *(.dynsym) }
182 .dynbss : { *(.dynbss) }
183 .dynstr : { *(.dynstr*) }
184 .dynamic : { *(.dynamic*) }
186 .interp : { *(.interp*) }
187 .gnu.hash : { *(.gnu.hash) }
189 .ARM.exidx : { *(.ARM.exidx*) }
190 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }