fix(esp_system): fix binary generation error when no eh_frame but TLS

ERROR:
A fatal error occurred: Segment loaded at 0x3c01d150 lands in same 64KB flash
mapping as segment loaded at 0x3c018020. Can't generate binary. Suggest
changing linker script or ELF to merge sections.

Seems binary generator does not handle well empty sections that contains
aligning only. I did not investigate much but this change helped.
This commit is contained in:
Alexey Lapshin
2024-08-04 23:05:36 +07:00
parent 1232759fb7
commit d0f05cd690
12 changed files with 48 additions and 53 deletions
@@ -353,7 +353,7 @@ SECTIONS
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
*(.xt_except_desc_end)
#if CONFIG_COMPILER_CXX_EXCEPTIONS
#if EH_FRAME_LINKING_ENABLED
ALIGNED_SYMBOL(4, __eh_frame)
KEEP(*(.eh_frame))
/**
@@ -361,7 +361,7 @@ SECTIONS
* (see __FRAME_END__ in libgcc sources), it is manually provided here.
*/
LONG(0);
#endif // CONFIG_COMPILER_CXX_EXCEPTIONS
#endif // EH_FRAME_LINKING_ENABLED
/**
* C++ constructor tables.