diff --git a/arch/common/nocache.ld b/arch/common/nocache.ld index a4e500e8b17b3c..d95d68cafd6337 100644 --- a/arch/common/nocache.ld +++ b/arch/common/nocache.ld @@ -8,7 +8,7 @@ /* Copied from linker.ld */ /* Non-cached region of RAM */ -SECTION_DATA_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),) +SECTION_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),) { #if defined(CONFIG_MMU) MMU_ALIGN; @@ -27,5 +27,5 @@ SECTION_DATA_PROLOGUE(_NOCACHE_SECTION_NAME,(NOLOAD),) MPU_ALIGN(_nocache_ram_size); #endif _nocache_ram_end = .; -} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) +} GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) _nocache_ram_size = _nocache_ram_end - _nocache_ram_start; diff --git a/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld b/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld index 51a096d2831cbd..c270beefae225a 100644 --- a/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld +++ b/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld @@ -397,7 +397,7 @@ GROUP_END(OCM) * section ends on a 4 byte boundary. This wastes a maximum of 3 bytes. */ __bss_end = ALIGN(4); - } GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) + } GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) #include diff --git a/include/zephyr/linker/kobject-priv-stacks.ld b/include/zephyr/linker/kobject-priv-stacks.ld index 53bd508927e688..16988a6a1ebfd3 100644 --- a/include/zephyr/linker/kobject-priv-stacks.ld +++ b/include/zephyr/linker/kobject-priv-stacks.ld @@ -6,7 +6,7 @@ #ifdef CONFIG_USERSPACE #ifdef CONFIG_GEN_PRIV_STACKS - SECTION_DATA_PROLOGUE(priv_stacks_noinit,(NOLOAD),) + SECTION_PROLOGUE(priv_stacks_noinit,(NOLOAD),) { z_priv_stacks_ram_start = .; @@ -53,6 +53,6 @@ for privileged stacks." #endif /* KOBJECT_PRIV_STACKS_ALIGN */ #endif /* LINKER_ZEPHYR_FINAL */ - } GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) + } GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, ROMABLE_REGION) #endif /* CONFIG_GEN_PRIV_STACKS */ #endif /* CONFIG_USERSPACE */