cmake: c++ exceptions linking support
Fixes part of: #32448 This commit updates the CMake CMAKE_CXX_LINK_EXECUTABLE to include crtbegin.o and crtend.o at the right locations when linking with gcc. It also updates linker scripts to ensure proper location of the exception header frame sections. This ensure proper handling of exceptions for those architectures - x86 - xtensa - riscv32 Signed-off-by: Kumar Gala <kumar.gala@linaro.org> Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
921d892721
commit
7d37fe21d1
5 changed files with 35 additions and 4 deletions
|
@ -534,6 +534,11 @@ SECTIONS
|
|||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.tm_clone_table :
|
||||
{
|
||||
*(.tm_clone_table)
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue