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:
Jordan Yates 2021-04-16 20:38:44 +10:00 committed by Maureen Helm
commit c6cc927506

View file

@ -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});
"""