nxp_adsp: linker: Update linker scripts for C++ build

When linking, in crtbegin.o for C++ exception support, we pull in
the .tm_clone_table section.
Update the linker scripts to handle this, otherwise we get a
"warning: orphan section `.tm_clone_table'".

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
This commit is contained in:
Iuliana Prodan 2023-11-11 01:18:02 +02:00 committed by Carles Cufí
commit 23c49e554a

View file

@ -415,6 +415,11 @@ SECTIONS
#include <zephyr/linker/common-ram.ld>
/* Used for C++ build */
.tm_clone_table : {
*(.tm_clone_table)
} >sdram0 :sdram0_phdr
.bss (NOLOAD) : ALIGN(8)
{
. = ALIGN (8);