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
53 #define __ARMV7_PSCI_STACK_IN_RAM
61 .secure_text CONFIG_ARMV7_SECURE_BASE :
62 AT(ADDR(.__secure_start) + SIZEOF(.__secure_start))
67 . = LOADADDR(.__secure_start) +
68 SIZEOF(.__secure_start) +
71 #ifdef __ARMV7_PSCI_STACK_IN_RAM
72 /* Align to page boundary and skip 2 pages */
73 . = (. & ~ 0xfff) + 0x2000;
74 #undef __ARMV7_PSCI_STACK_IN_RAM
78 .__secure_end : AT(__secure_end_lma) {
80 LONG(0x1d1071c); /* Must output something to reset LMA */
85 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
98 KEEP(*(SORT(.u_boot_list*)));
103 .__efi_runtime_start : {
104 *(.__efi_runtime_start)
112 .__efi_runtime_stop : {
113 *(.__efi_runtime_stop)
116 .efi_runtime_rel_start :
118 *(.__efi_runtime_rel_start)
122 *(.relefi_runtime_text)
123 *(.relefi_runtime_data)
126 .efi_runtime_rel_stop :
128 *(.__efi_runtime_rel_stop)
157 _image_binary_end = .;
160 * Deprecated: this MMU section is used by pxa at present but
161 * should not be used by new boards/CPUs.
169 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
170 * __bss_base and __bss_limit are for linker only (overlay ordering)
173 .bss_start __rel_dyn_start (OVERLAY) : {
174 KEEP(*(.__bss_start));
178 .bss __bss_base (OVERLAY) : {
184 .bss_end __bss_limit (OVERLAY) : {
188 .dynsym _image_binary_end : { *(.dynsym) }
189 .dynbss : { *(.dynbss) }
190 .dynstr : { *(.dynstr*) }
191 .dynamic : { *(.dynamic*) }
193 .interp : { *(.interp*) }
194 .gnu.hash : { *(.gnu.hash) }
196 .ARM.exidx : { *(.ARM.exidx*) }
197 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }