Skip to content

Commit 04b22dc

Browse files
committed
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 <duy.nguyen.xa@renesas.com>
1 parent 3a8464b commit 04b22dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/arch/rx/linker.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ SECTIONS
6868

6969
SECTION_PROLOGUE(_TEXT_SECTION_NAME,ROM_START,)
7070
{
71+
. = ALIGN(4);
7172
_image_text_start = .;
7273
/* Located in generated directory. This file is populated by the
7374
* zephyr_linker_sources() Cmake function.
@@ -207,8 +208,6 @@ SECTIONS
207208
} GROUP_NOLOAD_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
208209
#endif
209210

210-
#include <zephyr/linker/common-noinit.ld>
211-
212211
SECTION_DATA_PROLOGUE(_DATA_SECTION_NAME,,)
213212
{
214213
__data_region_start = .;
@@ -252,6 +251,7 @@ SECTIONS
252251
_end = .;
253252
} GROUP_LINK_IN(RAMABLE_REGION)
254253

254+
#include <zephyr/linker/common-noinit.ld>
255255
_ebss = . ;
256256

257257
_image_ram_end = .;

0 commit comments

Comments
 (0)