From 73987108cd4595a6c1ed0d2185427cc26456ed9c Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 21 Aug 2024 11:51:41 +0700 Subject: [PATCH] feat(esp_system): drop .got* sections and add hint Closes https://github.com/espressif/esp-idf/issues/14296 --- components/esp_system/ld/elf_misc.ld.in | 1 + tools/idf_py_actions/hints.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/components/esp_system/ld/elf_misc.ld.in b/components/esp_system/ld/elf_misc.ld.in index f1e9d5a800..5f15c0a8f7 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 26541573bf..a1a8da74c1 100644 --- a/tools/idf_py_actions/hints.yml +++ b/tools/idf_py_actions/hints.yml @@ -439,3 +439,7 @@ - re: "the current mclk multiple cannot perform integer division" hint: "Please adjust the mclk multiple to get the accurate sample rate.\nFor example, if you're using 24-bit slot width or enabled 3 slots, then the mclk multiple should be a multiple of 3, otherwise the sample rate will be inaccurate." + +- + 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."