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 <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-02-08 11:01:13 -08:00 committed by Anas Nashif
parent 230f4f1c1b
commit aa20d87268

View file

@ -442,6 +442,11 @@ SECTIONS
*(.rodata.*)
*(.gnu.linkonce.r.*)
*(.rodata1)
. = ALIGN(4);
#include <snippets-rodata.ld>
. = 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 <snippets-sections.ld>
.data : ALIGN(4)
{
_data_start = ABSOLUTE(.);
@ -529,9 +536,16 @@ SECTIONS
*(.sdata2.*)
*(.gnu.linkonce.s2.*)
KEEP(*(.jcr))
. = ALIGN(4);
#include <snippets-rwdata.ld>
. = ALIGN(4);
_data_end = ABSOLUTE(.);
} >sram0_seg :sram0_phdr
#include <snippets-data-sections.ld>
#include <linker/common-ram.ld>
.tm_clone_table :
@ -539,6 +553,8 @@ SECTIONS
*(.tm_clone_table)
} >sram0_seg :sram0_phdr
#include <snippets-ram-sections.ld>
.bss (NOLOAD) : ALIGN(8)
{
. = ALIGN (8);