u-boot/arch
Pali Rohár c0f4756216 powerpc: mpc85xx: Set TEXT_BASE addresses to real base values
Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are
manually increased by 0x1000 due to .bootpg section. This section has size
of 0x1000 bytes and is manually put by linker script before .text section
(and therefore before base address) when CONFIG_SYS_MPC85XX_NO_RESETVEC is
set. Due to this fact lot of other config options are manually increased by
0x1000 value to make correct layout. Note that entry point is not on
CONFIG_SPL_TEXT_BASE (image+0x1000) but it is really on address
CONFIG_SPL_TEXT_BASE-0x1000 (means at the start of the image).

Cleanup handling of .bootpg section when CONFIG_SYS_MPC85XX_NO_RESETVEC is
set. Put .bootpg code directly into .text section and move text base
address to the start of .bootpg code. And finally remove +0x1000 value from
lot of config options. With this removal custom PHDRS is not used anymore,
so remove it too.

After this change entry point would be at CONFIG_SPL_TEXT_BASE and not at
address -0x1000 anymore.

Tested on P2020 board with SPL and proper U-Boot.

Signed-off-by: Pali Rohár <pali@kernel.org>
2022-06-28 09:40:02 -04:00
..
arc linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
arm armv8 SHA-256 using ARMv8 Crypto Extensions 2022-06-27 13:36:28 -04:00
m68k Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
microblaze Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
mips Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
nios2 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
powerpc powerpc: mpc85xx: Set TEXT_BASE addresses to real base values 2022-06-28 09:40:02 -04:00
riscv linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
sandbox sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
sh linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
x86 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
xtensa linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
.gitignore
Kconfig Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00