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

This commit is contained in:
Alexey Lapshin
2024-04-26 16:37:32 +04:00
parent 8508c85551
commit 2b36636f6f
27 changed files with 720 additions and 208 deletions

View File

@@ -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"
}