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

Closes https://github.com/espressif/esp-idf/issues/14296
This commit is contained in:
Alexey Lapshin
2024-08-21 11:51:41 +07:00
parent da9536dbab
commit b746f6d6ef
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -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."