diff --git a/soc/arm/st_stm32/stm32mp1/linker.ld b/soc/arm/st_stm32/stm32mp1/linker.ld index 1ff5da841e5946..0d713918709526 100644 --- a/soc/arm/st_stm32/stm32mp1/linker.ld +++ b/soc/arm/st_stm32/stm32mp1/linker.ld @@ -9,8 +9,16 @@ #include +MEMORY +{ + LINKER_DT_REGIONS() + + /* Used by and documented in include/linker/intlist.ld */ + MMIO_REGION (wx) : ORIGIN = 0x10050000, LENGTH = 32K +} + SECTIONS - { +{ #include #ifdef CONFIG_OPENAMP_RSC_TABLE @@ -18,6 +26,11 @@ SECTIONS SECTION_PROLOGUE(.resource_table,, SUBALIGN(4)) { KEEP(*(.resource_table*)) - } GROUP_LINK_IN(ROMABLE_REGION) + } GROUP_LINK_IN(ROMABLE_REGION) #endif + + SECTION_PROLOGUE(.mmio_table,, SUBALIGN(4)) + { + KEEP(*(.mmio_table*)) + } GROUP_LINK_IN(MMIO_REGION) }