diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld index e4fffeee63f..c2aaf5f6e13 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld @@ -62,6 +62,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld index c93d88bfb89..fb5d88e8f51 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld @@ -72,6 +72,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld index 8e4cd2e8e8a..aaf4fac567f 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld @@ -65,6 +65,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld index 17d93fc10d6..cb543aef637 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld @@ -72,6 +72,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld index b62887b3ec9..b24007de6ed 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld @@ -65,6 +65,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld index 3c1fce5d5a4..137d460999f 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld @@ -72,6 +72,7 @@ SECTIONS /* Module text area starts at the end of iram0_0_seg */ + . = ALIGN (4); _smodtext = ABSOLUTE(.); } > iram0_0_seg