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 /* Align the secure section only if we're going to use it in situ */
53 #ifndef CONFIG_ARMV7_SECURE_BASE
54 ALIGN(CONSTANT(COMMONPAGESIZE))
57 KEEP(*(.__secure_start))
60 #ifndef CONFIG_ARMV7_SECURE_BASE
61 #define CONFIG_ARMV7_SECURE_BASE
62 #define __ARMV7_PSCI_STACK_IN_RAM
65 .secure_text CONFIG_ARMV7_SECURE_BASE :
66 AT(ADDR(.__secure_start) + SIZEOF(.__secure_start))
71 . = LOADADDR(.__secure_start) +
72 SIZEOF(.__secure_start) +
75 #ifdef __ARMV7_PSCI_STACK_IN_RAM
76 /* Align to page boundary and skip 2 pages */
77 . = (. & ~ 0xfff) + 0x2000;
78 #undef __ARMV7_PSCI_STACK_IN_RAM
82 .__secure_end : AT(__secure_end_lma) {
84 LONG(0x1d1071c); /* Must output something to reset LMA */
89 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
102 KEEP(*(SORT(.u_boot_list*)));
107 .__efi_runtime_start : {
108 *(.__efi_runtime_start)
116 .__efi_runtime_stop : {
117 *(.__efi_runtime_stop)
120 .efi_runtime_rel_start :
122 *(.__efi_runtime_rel_start)
126 *(.relefi_runtime_text)
127 *(.relefi_runtime_data)
130 .efi_runtime_rel_stop :
132 *(.__efi_runtime_rel_stop)
161 _image_binary_end = .;
164 * Deprecated: this MMU section is used by pxa at present but
165 * should not be used by new boards/CPUs.
173 * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
174 * __bss_base and __bss_limit are for linker only (overlay ordering)
177 .bss_start __rel_dyn_start (OVERLAY) : {
178 KEEP(*(.__bss_start));
182 .bss __bss_base (OVERLAY) : {
188 .bss_end __bss_limit (OVERLAY) : {
192 .dynsym _image_binary_end : { *(.dynsym) }
193 .dynbss : { *(.dynbss) }
194 .dynstr : { *(.dynstr*) }
195 .dynamic : { *(.dynamic*) }
197 .interp : { *(.interp*) }
198 .gnu.hash : { *(.gnu.hash) }
200 .ARM.exidx : { *(.ARM.exidx*) }
201 .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }