linker: cxx: Include .gcc_except_table sections
Include .gcc_except_table (sub-)sections in linker files to support C++ with exceptions enabled. If these sections are not mapped warnings will be generated for orphaned sections at link time. Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
parent
70fb574a6e
commit
ff36fc7d67
10 changed files with 53 additions and 1 deletions
12
include/linker/cplusplus-ram.ld
Normal file
12
include/linker/cplusplus-ram.ld
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if defined (CONFIG_CPLUSPLUS)
|
||||
SECTION_PROLOGUE(.gcc_except_table,,ONLY_IF_RW)
|
||||
{
|
||||
*(.gcc_except_table .gcc_except_table.*)
|
||||
} GROUP_LINK_IN(RAMABLE_REGION)
|
||||
#endif
|
12
include/linker/cplusplus-rom.ld
Normal file
12
include/linker/cplusplus-rom.ld
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#if defined (CONFIG_CPLUSPLUS)
|
||||
SECTION_PROLOGUE(.gcc_except_table,,ONLY_IF_RO)
|
||||
{
|
||||
*(.gcc_except_table .gcc_except_table.*)
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue