Skip to content

Commit

Permalink
soc: xtensa/sample_controller: add snippets to linker script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dcpleung authored and nashif committed Feb 10, 2022
1 parent 230f4f1 commit aa20d87
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions soc/xtensa/sample_controller/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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.*))
Expand Down Expand Up @@ -514,6 +519,8 @@ SECTIONS
*(.noinit.*)
} >sram0_seg :sram0_phdr

#include <snippets-sections.ld>

.data : ALIGN(4)
{
_data_start = ABSOLUTE(.);
Expand All @@ -529,16 +536,25 @@ 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 :
{
*(.tm_clone_table)
} >sram0_seg :sram0_phdr

#include <snippets-ram-sections.ld>

.bss (NOLOAD) : ALIGN(8)
{
. = ALIGN (8);
Expand Down

0 comments on commit aa20d87

Please sign in to comment.