soc: esp32xx: always use section prologue with alignment
ESP32 requires proper alignment between sections. There are some scenarios, as reported in #74533, that the section can get shifted, causing runtime failure. Making sure SECTION_PROLOGUE is used with ALIGN_WITH_INPUT will guarantee its consistency. Fixes #74533 Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
0cfd963ddc
commit
f65770c1a1
5 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,10 @@ user_dram_seg_len = user_idram_size;
|
|||
#undef GROUP_ROM_LINK_IN
|
||||
#define GROUP_ROM_LINK_IN(vregion, lregion) > RODATA_REGION AT > lregion
|
||||
|
||||
/* Make sure new sections have consistent alignment between input and output sections */
|
||||
#undef SECTION_PROLOGUE
|
||||
#define SECTION_PROLOGUE SECTION_DATA_PROLOGUE
|
||||
|
||||
MEMORY
|
||||
{
|
||||
#ifdef CONFIG_BOOTLOADER_MCUBOOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue