mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-31 10:06:32 +03:00
27 lines
547 B
Plaintext
27 lines
547 B
Plaintext
#include "sdkconfig.h"
|
|
#include "ld.common"
|
|
|
|
/DISCARD/ :
|
|
{
|
|
/**
|
|
* Discarding .rela.* sections results in the following mapping:
|
|
* .rela.text.* -> .text.*
|
|
* .rela.data.* -> .data.*
|
|
* And so forth...
|
|
*/
|
|
*(.rela.*)
|
|
#if CONFIG_LIBC_NEWLIB
|
|
*(.got .got.plt) /* TODO: GCC-382 */
|
|
#endif // CONFIG_LIBC_NEWLIB
|
|
|
|
*(.fini)
|
|
#if CONFIG_IDF_TARGET_ARCH_XTENSA
|
|
*(.eh_frame_hdr)
|
|
#endif // CONFIG_IDF_TARGET_ARCH_XTENSA
|
|
|
|
#if !EH_FRAME_LINKING_ENABLED
|
|
*(.eh_frame_hdr)
|
|
*(.eh_frame)
|
|
#endif // !EH_FRAME_LINKING_ENABLED
|
|
}
|