You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(elf2image): handle PREINIT_ARRAY section type in ESP32-P4 elf file properly
ESP32-P4 ELF files can contain PREINIT_ARRAY sections that were not being
properly included in the output binary, causing applications to fail.
ESP32-P4 is unique in having a .flash.init_array section in its linker
script that collects .preinit_array input sections. Since input sections
have different types (PREINIT_ARRAY and INIT_ARRAY), PREINIT_ARRAY is
processed first but was not handled correctly by esptool, resulting in
its exclusion from the output binary.
Other ESP32 variants don't experience this issue because their .preinit_array
sections are located in .flash.rodata with PROGBITS type, which is already
properly handled.
0 commit comments