mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(esp_system): enable linking with LLD on RISC-V targets
This commit is contained in:
@@ -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) }
|
||||
Reference in New Issue
Block a user