Skip to content
Snippets Groups Projects
Commit 5df572f0 authored by Ying Zhang's avatar Ying Zhang Committed by Andy Fleming
Browse files

powerpc/mpc85xx: support application without resetvec segment in the linker script


For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM,
then jump to it to begin execution. After that, the SPL loads the final uboot
image into DDR, then jump to it to begin execution. The segment .resetvec in
the SPL and in final U-boot is useless.

So, add new symbols CONFIG_SYS_MPC85XX_NO_RESETVEC for this application.
If CONFIG_SYS_MPC85XX_NO_RESETVEC is set, the segment .resetvec is excluded
and the segment .bootpg is placed in the previous 4K of the segment .text.

Signed-off-by: default avatarYing Zhang <b40530@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 505c293f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment