Skip to content

Commit

Permalink
Merge branch 'fix/keep-got-sections-for-riscv_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
feat(esp_system): drop .got* sections and add hint (v5.2)

See merge request espressif/esp-idf!33371
  • Loading branch information
Jiang Jiang Jian committed Oct 17, 2024
2 parents e038e66 + b746f6d commit ad32630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/esp_system/ld/elf_misc.ld.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions tools/idf_py_actions/hints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit ad32630

Please sign in to comment.