diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld index e4fffeee63..c2aaf5f6e1 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 c93d88bfb8..fb5d88e8f5 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 8e4cd2e8e8..aaf4fac567 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 17d93fc10d..cb543aef63 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 b62887b3ec..b24007de6e 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 3c1fce5d5a..137d460999 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