Merge branch 'fix/keep-got-sections-for-riscv_v5.2' into 'release/v5.2'

feat(esp_system): drop .got* sections and add hint (v5.2)

See merge request espressif/esp-idf!33371
This commit is contained in:
Jiang Jiang Jian
2024-10-17 10:46:49 +08:00
2 changed files with 5 additions and 0 deletions

View File

@@ -54,6 +54,7 @@
* And so forth... * And so forth...
*/ */
*(.rela.*) *(.rela.*)
*(.got .got.plt) /* TODO: GCC-382 */
#if !(CONFIG_COMPILER_CXX_EXCEPTIONS || CONFIG_ESP_SYSTEM_USE_EH_FRAME) #if !(CONFIG_COMPILER_CXX_EXCEPTIONS || CONFIG_ESP_SYSTEM_USE_EH_FRAME)
*(.eh_frame_hdr) *(.eh_frame_hdr)
*(.eh_frame) *(.eh_frame)

View File

@@ -422,3 +422,7 @@
- -
re: "unplaced orphan section" 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)." 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."