From d8bee6769a93f9cd23818430caf39856f3dd6fd9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 23 Oct 2020 23:10:11 +0900 Subject: [PATCH] esp32_flash.ld: Avoid having too many sections Fixes an issue I saw when trying libcxx. esptool.py has a limit of 16 sections. It complains like: A fatal error occurred: Invalid segment count 23 (max 16). Usually this indicates a linker script problem. --- boards/xtensa/esp32/esp32-core/scripts/esp32_flash.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/xtensa/esp32/esp32-core/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-core/scripts/esp32_flash.ld index f6db2e99fc..65c1421f05 100644 --- a/boards/xtensa/esp32/esp32-core/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-core/scripts/esp32_flash.ld @@ -136,6 +136,7 @@ SECTIONS __XT_EXCEPTION_TABLE_ = ABSOLUTE(.); *(.xt_except_table) *(.gcc_except_table) + *(.gcc_except_table.*) *(.gnu.linkonce.e.*) *(.gnu.version_r) *(.eh_frame)