1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2007-2009, 2011 Freescale Semiconductor, Inc.
8 #ifdef CONFIG_RESET_VECTOR_ADDRESS
9 #define RESET_VECTOR_ADDRESS CONFIG_RESET_VECTOR_ADDRESS
11 #define RESET_VECTOR_ADDRESS 0xfffffffc
14 #ifndef CONFIG_SYS_MONITOR_LEN
15 #define CONFIG_SYS_MONITOR_LEN 0x80000
29 /* Read-only sections, merged into text segment: */
31 .interp : { *(.interp) }
40 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
43 /* Read-write section, merged into data segment: */
44 . = (. + 0x00FF) & 0xFFFFFF00;
46 PROVIDE (erotext = .);
55 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
56 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
70 KEEP(*(SORT(.u_boot_list*)));
74 __start___ex_table = .;
75 __ex_table : { *(__ex_table) }
76 __stop___ex_table = .;
80 .text.init : { *(.text.init) }
81 .data.init : { *(.data.init) }
86 #ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC
87 .bootpg ADDR(.text) - 0x1000 :
89 KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg))
91 . = ADDR(.text) + CONFIG_SYS_MONITOR_LEN;
93 .bootpg RESET_VECTOR_ADDRESS - 0xffc :
95 arch/powerpc/cpu/mpc85xx/start.o (.bootpg)
98 .resetvec RESET_VECTOR_ADDRESS :
103 . = RESET_VECTOR_ADDRESS + 0x4;
106 * Make sure that the bss segment isn't linked at 0x0, otherwise its
107 * address won't be updated during relocation fixups. Note that
108 * this is a temporary fix. Code to dynamically the fixup the bss
109 * location will be added in the future. When the bss relocation
110 * fixup code is present this workaround should be removed.
112 #if (RESET_VECTOR_ADDRESS == 0xfffffffc)