Skip to content

Commit 03f097b

Browse files
lyakhnashif
authored andcommitted
xtensa: cavs: fix linker warnings on cAVS 2.0 and 2.5
Add the missing .cached section on cAVS 2.0 and 2.5 to fix compiler warnings. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent f5b261d commit 03f097b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

soc/xtensa/intel_adsp/cavs_v20/linker.ld

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ SECTIONS
440440
*(.gnu.linkonce.lit4.*)
441441
_lit4_end = ABSOLUTE(.);
442442
} >ram :ram_phdr
443+
.cached :
444+
{
445+
*(.cached .cached.*)
446+
} >ram :ram_phdr
443447
#include <linker/common-ram.ld>
444448

445449
.bss (NOLOAD) : ALIGN(4096)

soc/xtensa/intel_adsp/cavs_v25/linker.ld

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ SECTIONS
485485
*(.gnu.linkonce.lit4.*)
486486
_lit4_end = ABSOLUTE(.);
487487
} >ram :ram_phdr
488+
.cached :
489+
{
490+
*(.cached .cached.*)
491+
} >ram :ram_phdr
488492
#include <linker/common-ram.ld>
489493

490494
.AltBootManifest : ALIGN(8)

0 commit comments

Comments
 (0)