scripts: make code relocation work for non-XIP system
on non-XIP system, loading address shouldn't be located on FLASH memory region. Fixes: #16090. Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
parent
743a184b2d
commit
c8f43b9c25
1 changed files with 7 additions and 1 deletions
|
@ -39,7 +39,13 @@ SECTION_LOAD_MEMORY_SEQ = """
|
|||
__{0}_{1}_rom_start = LOADADDR(_{2}_{3}_SECTION_NAME);
|
||||
"""
|
||||
|
||||
LOAD_ADDRESS_LOCATION_FLASH = "GROUP_DATA_LINK_IN({0}, FLASH)"
|
||||
LOAD_ADDRESS_LOCATION_FLASH = """
|
||||
#ifdef CONFIG_XIP
|
||||
GROUP_DATA_LINK_IN({0}, FLASH)
|
||||
#else
|
||||
GROUP_DATA_LINK_IN({0}, {0})
|
||||
#endif
|
||||
"""
|
||||
LOAD_ADDRESS_LOCATION_BSS = "GROUP_LINK_IN({0})"
|
||||
|
||||
MPU_RO_REGION_START = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue