From aa20d872686732fef50da379fe7cc60b0a095181 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 8 Feb 2022 11:01:13 -0800 Subject: [PATCH] soc: xtensa/sample_controller: add snippets to linker script The xtensa/sample_controller linker script is missing the necessary include statements for linker snippets. So add them. Fixes #42477 Signed-off-by: Daniel Leung --- soc/xtensa/sample_controller/linker.ld | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/soc/xtensa/sample_controller/linker.ld b/soc/xtensa/sample_controller/linker.ld index 7f522174399..2683f0e0ce6 100644 --- a/soc/xtensa/sample_controller/linker.ld +++ b/soc/xtensa/sample_controller/linker.ld @@ -442,6 +442,11 @@ SECTIONS *(.rodata.*) *(.gnu.linkonce.r.*) *(.rodata1) + + . = ALIGN(4); + #include + . = ALIGN(4); + __XT_EXCEPTION_TABLE__ = ABSOLUTE(.); KEEP (*(.xt_except_table)) KEEP (*(.gcc_except_table .gcc_except_table.*)) @@ -514,6 +519,8 @@ SECTIONS *(.noinit.*) } >sram0_seg :sram0_phdr +#include + .data : ALIGN(4) { _data_start = ABSOLUTE(.); @@ -529,9 +536,16 @@ SECTIONS *(.sdata2.*) *(.gnu.linkonce.s2.*) KEEP(*(.jcr)) + + . = ALIGN(4); + #include + . = ALIGN(4); + _data_end = ABSOLUTE(.); } >sram0_seg :sram0_phdr +#include + #include .tm_clone_table : @@ -539,6 +553,8 @@ SECTIONS *(.tm_clone_table) } >sram0_seg :sram0_phdr +#include + .bss (NOLOAD) : ALIGN(8) { . = ALIGN (8);