diff --git a/components/esp_system/ld/elf_misc.ld.in b/components/esp_system/ld/elf_misc.ld.in index f1e9d5a8001b..5f15c0a8f7a4 100644 --- a/components/esp_system/ld/elf_misc.ld.in +++ b/components/esp_system/ld/elf_misc.ld.in @@ -54,6 +54,7 @@ * And so forth... */ *(.rela.*) + *(.got .got.plt) /* TODO: GCC-382 */ #if !(CONFIG_COMPILER_CXX_EXCEPTIONS || CONFIG_ESP_SYSTEM_USE_EH_FRAME) *(.eh_frame_hdr) *(.eh_frame) diff --git a/tools/idf_py_actions/hints.yml b/tools/idf_py_actions/hints.yml index 19ed52e056f0..89c33c0f6aa3 100644 --- a/tools/idf_py_actions/hints.yml +++ b/tools/idf_py_actions/hints.yml @@ -422,3 +422,7 @@ - re: "unplaced orphan section" hint: "Avoid creating custom sections. Please refer to the 'Linker Script Generation' article in the IDF documentation to address this. Or set option CONFIG_COMPILER_ORPHAN_SECTIONS_PLACE (not recommended)." + +- + re: "discarded output section: .*\\.got" + hint: "Some objects being linked were compiled with the \"-fpic\"/\"-fpie\" options. These options may be suitable for \"linux\" builds, but must not be applied for esp32XX targets."