From 70fb574a6e8c03b2102e7a6cfe1aeabc3092468c Mon Sep 17 00:00:00 2001 From: Jan Van Winkel Date: Sat, 7 Sep 2019 14:51:35 +0200 Subject: [PATCH] linker: cxx: xtensa: Added .gcc_except_table.* Make sure that all sub-sections of .gcc_except_table are mapped in rodata else C++ builds with exceptions enabled will generate warnings due to orphan sections. Signed-off-by: Jan Van Winkel --- soc/xtensa/esp32/linker.ld | 2 +- soc/xtensa/intel_s1000/linker.ld | 2 +- soc/xtensa/sample_controller/linker.ld | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/soc/xtensa/esp32/linker.ld b/soc/xtensa/esp32/linker.ld index 405e0ac6bec..8085eda03bb 100644 --- a/soc/xtensa/esp32/linker.ld +++ b/soc/xtensa/esp32/linker.ld @@ -183,7 +183,7 @@ SECTIONS *(.rodata1) __XT_EXCEPTION_TABLE__ = ABSOLUTE(.); KEEP (*(.xt_except_table)) - KEEP (*(.gcc_except_table)) + KEEP (*(.gcc_except_table .gcc_except_table.*)) *(.gnu.linkonce.e.*) *(.gnu.version_r) KEEP (*(.eh_frame)) diff --git a/soc/xtensa/intel_s1000/linker.ld b/soc/xtensa/intel_s1000/linker.ld index 3bb372ea171..251cae3e115 100644 --- a/soc/xtensa/intel_s1000/linker.ld +++ b/soc/xtensa/intel_s1000/linker.ld @@ -357,7 +357,7 @@ SECTIONS *(.rodata1) __XT_EXCEPTION_TABLE__ = ABSOLUTE(.); KEEP (*(.xt_except_table)) - KEEP (*(.gcc_except_table)) + KEEP (*(.gcc_except_table .gcc_except_table.*)) *(.gnu.linkonce.e.*) *(.gnu.version_r) KEEP (*(.eh_frame)) diff --git a/soc/xtensa/sample_controller/linker.ld b/soc/xtensa/sample_controller/linker.ld index 9f792c5db95..72370478d53 100644 --- a/soc/xtensa/sample_controller/linker.ld +++ b/soc/xtensa/sample_controller/linker.ld @@ -447,7 +447,7 @@ SECTIONS *(.rodata1) __XT_EXCEPTION_TABLE__ = ABSOLUTE(.); KEEP (*(.xt_except_table)) - KEEP (*(.gcc_except_table)) + KEEP (*(.gcc_except_table .gcc_except_table.*)) *(.gnu.linkonce.e.*) *(.gnu.version_r) KEEP (*(.eh_frame))