fix(system): place idf's stray sections while linking

This commit is contained in:
Alexey Lapshin
2024-05-20 13:31:04 +04:00
parent 51b6d16b43
commit 89218b35e4
26 changed files with 717 additions and 208 deletions
@@ -514,18 +514,5 @@ SECTIONS
ALIGNED_SYMBOL(16, _heap_start_high)
} > sram_high
/DISCARD/ :
{
/**
* Discarding .rela.* sections results in the following mapping:
* .rela.text.* -> .text.*
* .rela.data.* -> .data.*
* And so forth...
*/
*(.rela.*)
#if !(CONFIG_COMPILER_CXX_EXCEPTIONS || CONFIG_ESP_SYSTEM_USE_EH_FRAME)
*(.eh_frame_hdr)
*(.eh_frame)
#endif // !(CONFIG_COMPILER_CXX_EXCEPTIONS || CONFIG_ESP_SYSTEM_USE_EH_FRAME)
}
#include "elf_misc.ld.in"
}