soc: xtensa: linker: Update linker scripts for C++ build
When we link in crtbegin.o for C++ exception support we end up pulling in the .tm_clone_table section. We need to update the linker scripts to handle this. soc/xtensa/sample_controller/linker.ld was already updated, this fixes the others. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
106ca70997
commit
79e0ab743e
5 changed files with 25 additions and 0 deletions
|
@ -474,6 +474,11 @@ SECTIONS
|
||||||
*(.cached .cached.*)
|
*(.cached .cached.*)
|
||||||
} >ram :ram_phdr
|
} >ram :ram_phdr
|
||||||
|
|
||||||
|
.tm_clone_table SEGSTART_UNCACHED :
|
||||||
|
{
|
||||||
|
*(.tm_clone_table)
|
||||||
|
} >ram :ram_phdr
|
||||||
|
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
|
|
||||||
.bss SEGSTART_UNCACHED (NOLOAD) :
|
.bss SEGSTART_UNCACHED (NOLOAD) :
|
||||||
|
|
|
@ -479,6 +479,11 @@ SECTIONS
|
||||||
*(.cached .cached.*)
|
*(.cached .cached.*)
|
||||||
} >ram :ram_phdr
|
} >ram :ram_phdr
|
||||||
|
|
||||||
|
.tm_clone_table SEGSTART_UNCACHED :
|
||||||
|
{
|
||||||
|
*(.tm_clone_table)
|
||||||
|
} >ram :ram_phdr
|
||||||
|
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
|
|
||||||
.bss SEGSTART_UNCACHED (NOLOAD) :
|
.bss SEGSTART_UNCACHED (NOLOAD) :
|
||||||
|
|
|
@ -446,6 +446,11 @@ SECTIONS
|
||||||
} >ram :ram_phdr
|
} >ram :ram_phdr
|
||||||
#include <linker/common-ram.ld>
|
#include <linker/common-ram.ld>
|
||||||
|
|
||||||
|
.tm_clone_table :
|
||||||
|
{
|
||||||
|
*(.tm_clone_table)
|
||||||
|
} >ram :ram_phdr
|
||||||
|
|
||||||
.bss (NOLOAD) : ALIGN(4096)
|
.bss (NOLOAD) : ALIGN(4096)
|
||||||
{
|
{
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
|
|
|
@ -515,6 +515,11 @@ SECTIONS
|
||||||
_loader_storage_manifest_end = ABSOLUTE(.);
|
_loader_storage_manifest_end = ABSOLUTE(.);
|
||||||
} >ram :ram_phdr
|
} >ram :ram_phdr
|
||||||
|
|
||||||
|
.tm_clone_table :
|
||||||
|
{
|
||||||
|
*(.tm_clone_table)
|
||||||
|
} >ram :ram_phdr
|
||||||
|
|
||||||
.bss (NOLOAD) : ALIGN(4096)
|
.bss (NOLOAD) : ALIGN(4096)
|
||||||
{
|
{
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
|
|
|
@ -426,6 +426,11 @@ SECTIONS
|
||||||
} >ram :ram_phdr
|
} >ram :ram_phdr
|
||||||
#include <linker/common-ram.ld>
|
#include <linker/common-ram.ld>
|
||||||
|
|
||||||
|
.tm_clone_table :
|
||||||
|
{
|
||||||
|
*(.tm_clone_table)
|
||||||
|
} >ram :ram_phdr
|
||||||
|
|
||||||
.bss (NOLOAD) : ALIGN(8)
|
.bss (NOLOAD) : ALIGN(8)
|
||||||
{
|
{
|
||||||
. = ALIGN (8);
|
. = ALIGN (8);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue