scripts: gen_relocate_app.py: fix undefined _ADDR
With the addition of #34185, it is not longer gauranteed that for a memory region `NAME` there exists a symbol `NAME_ADDR`. Use the linker builtin function `ORIGIN` to instead directly get the start address of the selected memory region. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
f86e8a66d8
commit
c6cc927506
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ LOAD_ADDRESS_LOCATION_BSS = "GROUP_LINK_IN({0})"
|
|||
|
||||
MPU_RO_REGION_START = """
|
||||
|
||||
_{0}_mpu_ro_region_start = {1}_ADDR;
|
||||
_{0}_mpu_ro_region_start = ORIGIN({1});
|
||||
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue