diff --git a/soc/xtensa/sample_controller/linker.ld b/soc/xtensa/sample_controller/linker.ld index 7f522174399ec..2683f0e0ce65b 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);