arch: arm: aarch32: linker file fix for OCM

Fix the mapping of the sections to be located in the On-Chip
Memory so that the OCM memory region name always matches that
of the chosen OCM DT node's memory-region attribute.

Signed-off-by: Immo Birnbaum <Immo.Birnbaum@weidmueller.com>
This commit is contained in:
Immo Birnbaum 2022-01-04 16:16:14 +01:00 committed by Anas Nashif
commit cd13e25bb3

View file

@ -352,7 +352,7 @@ GROUP_START(OCM)
*(.ocm_bss)
*(".ocm_bss.*")
__ocm_bss_end = .;
} GROUP_LINK_IN(OCM)
} GROUP_LINK_IN(LINKER_DT_NODE_REGION_NAME(DT_CHOSEN(zephyr_ocm)))
SECTION_PROLOGUE(_OCM_DATA_SECTION_NAME,,SUBALIGN(4))
{
@ -360,7 +360,7 @@ GROUP_START(OCM)
*(.ocm_data)
*(".ocm_data.*")
__ocm_data_end = .;
} GROUP_LINK_IN(OCM)
} GROUP_LINK_IN(LINKER_DT_NODE_REGION_NAME(DT_CHOSEN(zephyr_ocm)))
__ocm_end = .;
__ocm_size = __ocm_end - __ocm_start;