From 233f9a6a313a697071de8c3fe08dd3630e3e9785 Mon Sep 17 00:00:00 2001 From: Joost Nieuwenhuijse Date: Wed, 16 May 2018 17:54:56 +0200 Subject: [PATCH] Change linker script to support C++ exceptions See: https://github.com/espressif/esp-idf/issues/459 https://github.com/jcmvbkbc/crosstool-NG/issues/54 --- ld/program.ld | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ld/program.ld b/ld/program.ld index 5b9031f..e169abd 100644 --- a/ld/program.ld +++ b/ld/program.ld @@ -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)