Merge branch 'fix/stray_sections_v5.3' into 'release/v5.3'

fix(system): print warning if stray section is found while linking (v5.3)

See merge request espressif/esp-idf!30948
This commit is contained in:
Ivan Grokhotkov
2024-06-12 16:42:12 +08:00
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"
}