fix(esp_system): enable linking with LLD on RISC-V targets

This commit is contained in:
Stefan Stipanovic
2026-08-13 21:23:36 +02:00
parent b2672c7937
commit d0ae774d59
17 changed files with 147 additions and 11 deletions
@@ -70,6 +70,7 @@
.note.GNU-stack 0 : { *(.note.GNU-stack) }
.riscv.attributes 0 : { *(.riscv.attributes) }
#include "ld.elf.internal.sections"
/**
* .xt.prop and .xt.lit sections will be used by the debugger and disassembler
@@ -15,6 +15,8 @@
#endif // CONFIG_LIBC_NEWLIB
*(.fini)
*(.fini_array)
*(.fini_array.*)
#if CONFIG_IDF_TARGET_ARCH_XTENSA
*(.eh_frame_hdr)
#endif // CONFIG_IDF_TARGET_ARCH_XTENSA
@@ -0,0 +1,8 @@
/**
* Linker-generated ELF sections. Must be explicitly placed in linker scripts
* when using ld.lld with --orphan-handling=warn/error. GNU ld special-cases
* these sections; ld.lld does not.
*/
.symtab 0 : { *(.symtab) }
.strtab 0 : { *(.strtab) }
.shstrtab 0 : { *(.shstrtab) }