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 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