This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 216c4b00e2 boards/[risc-v|xtensa]/esp32[|c3|c6|h2|s3]: set coexiram
sections
216c4b00e2 is described below
commit 216c4b00e2358fc0bb09db9c4eeb3cc0b240679a
Author: Tiago Medicci Serrano <[email protected]>
AuthorDate: Tue Apr 22 11:49:34 2025 -0300
boards/[risc-v|xtensa]/esp32[|c3|c6|h2|s3]: set coexiram sections
This commit sets the coexiram (from libcoexist.a) sections on IRAM.
Before this commit, no other rules matched such sections and the
sections could be placed outside markers that denote the end of the
text sections, causing unexpected errors.
Signed-off-by: Tiago Medicci Serrano <[email protected]>
---
boards/risc-v/esp32c3/common/scripts/esp32c3_sections.ld | 2 ++
boards/risc-v/esp32c6/common/scripts/esp32c6_sections.ld | 2 ++
boards/risc-v/esp32h2/common/scripts/esp32h2_sections.ld | 2 ++
boards/xtensa/esp32/common/scripts/esp32_sections.ld | 1 +
boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld | 2 +-
5 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/boards/risc-v/esp32c3/common/scripts/esp32c3_sections.ld
b/boards/risc-v/esp32c3/common/scripts/esp32c3_sections.ld
index aabbc62c5f..bb9e518ca5 100644
--- a/boards/risc-v/esp32c3/common/scripts/esp32c3_sections.ld
+++ b/boards/risc-v/esp32c3/common/scripts/esp32c3_sections.ld
@@ -118,6 +118,8 @@ SECTIONS
*(.iram1)
*(.iram1.*)
+ *libcoexist.a:(.coexiram .coexiram.*)
+
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
diff --git a/boards/risc-v/esp32c6/common/scripts/esp32c6_sections.ld
b/boards/risc-v/esp32c6/common/scripts/esp32c6_sections.ld
index 92e7961762..c6d5c7aac5 100644
--- a/boards/risc-v/esp32c6/common/scripts/esp32c6_sections.ld
+++ b/boards/risc-v/esp32c6/common/scripts/esp32c6_sections.ld
@@ -118,6 +118,8 @@ SECTIONS
*(.iram1)
*(.iram1.*)
+ *libcoexist.a:(.coexiram .coexiram.*)
+
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
diff --git a/boards/risc-v/esp32h2/common/scripts/esp32h2_sections.ld
b/boards/risc-v/esp32h2/common/scripts/esp32h2_sections.ld
index 8e9e49eb3a..6320b074b8 100644
--- a/boards/risc-v/esp32h2/common/scripts/esp32h2_sections.ld
+++ b/boards/risc-v/esp32h2/common/scripts/esp32h2_sections.ld
@@ -118,6 +118,8 @@ SECTIONS
*(.iram1)
*(.iram1.*)
+ *libcoexist.a:(.coexiram .coexiram.*)
+
*libsched.a:irq_dispatch.*(.text .text.* .literal .literal.*)
*libsched.a:sched_lock.*(.text .text.* .literal .literal.*)
*libsched.a:sched_unlock.*(.text .text.* .literal .literal.*)
diff --git a/boards/xtensa/esp32/common/scripts/esp32_sections.ld
b/boards/xtensa/esp32/common/scripts/esp32_sections.ld
index 4e99121049..b94e7b3b17 100644
--- a/boards/xtensa/esp32/common/scripts/esp32_sections.ld
+++ b/boards/xtensa/esp32/common/scripts/esp32_sections.ld
@@ -153,6 +153,7 @@ SECTIONS
_iram_text_start = ABSOLUTE(.);
*(.iram1 .iram1.*)
esp32_start.*(.literal .text .literal.* .text.*)
+ *libcoexist.a:(.coexiram .coexiram.*)
*libphy.a:(.literal .text .literal.* .text.*)
*librtc.a:(.literal .text .literal.* .text.*)
*libpp.a:(.literal .text .literal.* .text.*)
diff --git a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
index 8e38042945..5d2194983a 100644
--- a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
+++ b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
@@ -158,7 +158,7 @@ SECTIONS
*(.iram1 .iram1.*)
esp32s3_start.*(.literal .text .literal.* .text.*)
esp32s3_region.*(.literal .text .literal.* .text.*)
-
+ *libcoexist.a:(.coexiram .coexiram.*)
*libarch.a:*esp_loader.*(.literal .text .literal.* .text.*)
*libarch.a:esp32s3_cpuindex.*(.literal .text .literal.* .text.*)
*libarch.a:esp32s3_irq.*(.literal .text .literal.* .text.*)