Change linker script to support C++ exceptions

See:
https://github.com/espressif/esp-idf/issues/459
https://github.com/jcmvbkbc/crosstool-NG/issues/54
This commit is contained in:
Joost Nieuwenhuijse 2018-05-16 17:54:56 +02:00
parent ee001e0231
commit 233f9a6a31

View file

@ -253,10 +253,13 @@ SECTIONS
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.); __XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
*(.xt_except_table) *(.xt_except_table)
*(.gcc_except_table) *(.gcc_except_table .gcc_except_table.*)
*(.gnu.linkonce.e.*) *(.gnu.linkonce.e.*)
*(.gnu.version_r) *(.gnu.version_r)
*(.eh_frame) . = (. + 3) & ~ 3;
__eh_frame = ABSOLUTE(.);
KEEP(*(.eh_frame))
. = (. + 7) & ~ 3;
. = ALIGN(4); . = ALIGN(4);
*(.dynamic) *(.dynamic)
*(.gnu.version_d) *(.gnu.version_d)