In App, there are Boot header and cpu vectors define like this:
flash_rchw : org = 0x00FA4000, len = 0x4
cpu0_reset_vec : org = 0x00FA4000+0x10, len = 0x4
cpu1_reset_vec : org = 0x00FA4000+0x14, len = 0x4
cpu2_reset_vec : org = 0x00FA4000+0x04, len = 0x4
The boot sequence is:
bootloader cpu reset vectors -> bootloader main() jump to -> App's cpu reset vector -> App's main()
To merger bootloader elf or bin (whatever) into App project, how to ensure that bootloader's bootheader and reset vectors also put in the right place?