From f92b70bdb05f73671d85da3d687a9824c86dba50 Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Mon, 16 Jun 2025 20:34:24 +0700 Subject: [PATCH] include: arch: rx: Change noinit region to be after bss Change noinit region to be after bss so that it would not cause alignment issue for the data region setup Signed-off-by: Duy Nguyen --- include/zephyr/arch/rx/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zephyr/arch/rx/linker.ld b/include/zephyr/arch/rx/linker.ld index 8ef4a0f6f5e..0ad5c22bd17 100644 --- a/include/zephyr/arch/rx/linker.ld +++ b/include/zephyr/arch/rx/linker.ld @@ -68,6 +68,7 @@ SECTIONS SECTION_PROLOGUE(_TEXT_SECTION_NAME,ROM_START,) { + . = ALIGN(4); _image_text_start = .; /* Located in generated directory. This file is populated by the * zephyr_linker_sources() Cmake function. @@ -207,8 +208,6 @@ SECTIONS } GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) #endif -#include - SECTION_DATA_PROLOGUE(_DATA_SECTION_NAME,,) { __data_region_start = .; @@ -252,6 +251,7 @@ SECTIONS _end = .; } GROUP_LINK_IN(RAMABLE_REGION) +#include _ebss = . ; _image_ram_end = .;