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
1 changed files with 5 additions and 2 deletions

View File

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