lpc2387: Add missing exception tables to linker script

Copied from kinetis_common
This commit is contained in:
Joakim Gebart 2015-05-30 07:20:34 +02:00
parent 26195bf275
commit 79ca190666

View File

@ -89,13 +89,38 @@ SECTIONS
} >flash /* put all the above into FLASH */ } >flash /* put all the above into FLASH */
. = ALIGN(4); . = ALIGN(4);
/* .ARM.exidx is sorted, so has to go in its own output section. */ /* The .extab, .exidx sections are used for C++ exception handling */
__exidx_start = .; .ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
} > flash
PROVIDE_HIDDEN (__exidx_start = .);
.ARM.exidx : .ARM.exidx :
{ {
*(.ARM.exidx* .gnu.linkonce.armexidx.*) *(.ARM.exidx* .gnu.linkonce.armexidx.*)
} > flash } > flash
__exidx_end = .; PROVIDE_HIDDEN (__exidx_end = .);
.eh_frame_hdr :
{
*(.eh_frame_hdr)
} > flash
.eh_frame : ONLY_IF_RO
{
KEEP (*(.eh_frame))
} > flash
.gcc_except_table : ONLY_IF_RO
{
*(.gcc_except_table .gcc_except_table.*)
} > flash
/*
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } > sram_u AT > flash
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) } > sram_u AT > flash
*/
_etext = . ; /* define a global symbol _etext just after the last code byte */ _etext = . ; /* define a global symbol _etext just after the last code byte */