Skip to content

Commit 4f78d86

Browse files
AdithyaBaglodynashif
authored andcommitted
arch: arm: linker.ld: Fixed incorrect placement of noinit section
This was causing an incorrect hash for privileged stack. Fixes: GH-10473 Fixes: GH-10474 Fixes: GH-10475 Fixes: GH-10476 Signed-off-by: Adithya Baglody <[email protected]>
1 parent fd25c8b commit 4f78d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/arch/arm/cortex_m/scripts/linker.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ SECTIONS
354354
KERNEL_INPUT_SECTION(COMMON)
355355
*(".kernel_bss.*")
356356

357-
#include <linker/priv_stacks-noinit.ld>
358-
359357
/*
360358
* As memory is cleared in words only, it is simpler to ensure the BSS
361359
* section ends on a 4 byte boundary. This wastes a maximum of 3 bytes.
@@ -373,6 +371,8 @@ SECTIONS
373371
KERNEL_INPUT_SECTION(".noinit.*")
374372
*(".kernel_noinit.*")
375373

374+
#include <linker/priv_stacks-noinit.ld>
375+
376376
#ifdef CONFIG_SOC_NOINIT_LD
377377
#include <soc-noinit.ld>
378378
#endif

0 commit comments

Comments
 (0)