2 * Copyright 2007-2009 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
7 #include "config.h" /* CONFIG_BOARDDIR */
9 #ifndef RESET_VECTOR_ADDRESS
10 #define RESET_VECTOR_ADDRESS 0xfffffffc
23 /* Read-only sections, merged into text segment: */
33 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
36 /* Read-write section, merged into data segment: */
37 . = (. + 0x00FF) & 0xFFFFFF00;
39 PROVIDE (erotext = .);
45 PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
49 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
50 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
64 KEEP(*(SORT(.u_boot_list*)));
68 __start___ex_table = .;
69 __ex_table : { *(__ex_table) }
70 __stop___ex_table = .;
74 .text.init : { *(.text.init) }
75 .data.init : { *(.data.init) }
79 ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and CONFIG_SYS_TEXT_BASE may need to be modified.");
83 common/env_embedded.o(.ppcenv);
86 .resetvec RESET_VECTOR_ADDRESS :
91 . = RESET_VECTOR_ADDRESS + 0x4;
94 * Make sure that the bss segment isn't linked at 0x0, otherwise its
95 * address won't be updated during relocation fixups. Note that
96 * this is a temporary fix. Code to dynamically the fixup the bss
97 * location will be added in the future. When the bss relocation
98 * fixup code is present this workaround should be removed.
100 #if (RESET_VECTOR_ADDRESS == 0xfffffffc)