2 * Copyright 2007-2009, 2011 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
7 #include "config.h" /* CONFIG_BOARDDIR */
9 #ifdef CONFIG_RESET_VECTOR_ADDRESS
10 #define RESET_VECTOR_ADDRESS CONFIG_RESET_VECTOR_ADDRESS
12 #define RESET_VECTOR_ADDRESS 0xfffffffc
25 /* Read-only sections, merged into text segment: */
27 .interp : { *(.interp) }
36 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
39 /* Read-write section, merged into data segment: */
40 . = (. + 0x00FF) & 0xFFFFFF00;
42 PROVIDE (erotext = .);
48 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
52 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
53 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
67 KEEP(*(SORT(.u_boot_list*)));
71 __start___ex_table = .;
72 __ex_table : { *(__ex_table) }
73 __stop___ex_table = .;
77 .text.init : { *(.text.init) }
78 .data.init : { *(.data.init) }
82 #ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC
83 .bootpg ADDR(.text) - 0x1000 :
85 KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg))
87 . = ADDR(.text) + 0x80000;
89 .bootpg RESET_VECTOR_ADDRESS - 0xffc :
91 arch/powerpc/cpu/mpc85xx/start.o (.bootpg)
94 .resetvec RESET_VECTOR_ADDRESS :
99 . = RESET_VECTOR_ADDRESS + 0x4;
102 * Make sure that the bss segment isn't linked at 0x0, otherwise its
103 * address won't be updated during relocation fixups. Note that
104 * this is a temporary fix. Code to dynamically the fixup the bss
105 * location will be added in the future. When the bss relocation
106 * fixup code is present this workaround should be removed.
108 #if (RESET_VECTOR_ADDRESS == 0xfffffffc)