From 1748ca42cdccd7bf99b6d47df846fc78f25d8f3a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 15 Apr 2021 13:17:06 +0900 Subject: [PATCH] esp32: Ensure the alignment of _smodtext --- boards/xtensa/esp32/esp32-devkitc/scripts/esp32_flash.ld | 1 + boards/xtensa/esp32/esp32-devkitc/scripts/esp32_iram.ld | 1 + boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_flash.ld | 1 + boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_iram.ld | 1 + boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_flash.ld | 1 + boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_iram.ld | 1 + 6 files changed, 6 insertions(+) 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