This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new e54ac3174 boot/startup: Fix linker script filter for code in RAM
e54ac3174 is described below
commit e54ac3174139f302a53d766e038d5fe29d44270d
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Jun 5 23:03:13 2024 +0200
boot/startup: Fix linker script filter for code in RAM
Filter .text* was before .text_ram* resulting in code
intended for ram to be placed in normal flash.
Now .text.* is used for flash destination
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
boot/startup/mynewt_cortex_m0.ld | 2 +-
boot/startup/mynewt_cortex_m3.ld | 2 +-
boot/startup/mynewt_cortex_m33.ld | 2 +-
boot/startup/mynewt_cortex_m4.ld | 2 +-
boot/startup/mynewt_cortex_m7.ld | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/boot/startup/mynewt_cortex_m0.ld b/boot/startup/mynewt_cortex_m0.ld
index 9585918be..204f29f1f 100644
--- a/boot/startup/mynewt_cortex_m0.ld
+++ b/boot/startup/mynewt_cortex_m0.ld
@@ -89,7 +89,7 @@ SECTIONS
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
- *(.text*) /* .text* sections (code) */
+ *(.text.*) /* .text* sections (code) */
KEEP(*(.init))
KEEP(*(.fini))
diff --git a/boot/startup/mynewt_cortex_m3.ld b/boot/startup/mynewt_cortex_m3.ld
index 9585918be..204f29f1f 100644
--- a/boot/startup/mynewt_cortex_m3.ld
+++ b/boot/startup/mynewt_cortex_m3.ld
@@ -89,7 +89,7 @@ SECTIONS
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
- *(.text*) /* .text* sections (code) */
+ *(.text.*) /* .text* sections (code) */
KEEP(*(.init))
KEEP(*(.fini))
diff --git a/boot/startup/mynewt_cortex_m33.ld
b/boot/startup/mynewt_cortex_m33.ld
index 9585918be..204f29f1f 100644
--- a/boot/startup/mynewt_cortex_m33.ld
+++ b/boot/startup/mynewt_cortex_m33.ld
@@ -89,7 +89,7 @@ SECTIONS
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
- *(.text*) /* .text* sections (code) */
+ *(.text.*) /* .text* sections (code) */
KEEP(*(.init))
KEEP(*(.fini))
diff --git a/boot/startup/mynewt_cortex_m4.ld b/boot/startup/mynewt_cortex_m4.ld
index 3f9703fd3..6f0237751 100644
--- a/boot/startup/mynewt_cortex_m4.ld
+++ b/boot/startup/mynewt_cortex_m4.ld
@@ -101,7 +101,7 @@ SECTIONS
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
- *(.text*) /* .text* sections (code) */
+ *(.text.*) /* .text* sections (code) */
KEEP(*(.init))
KEEP(*(.fini))
diff --git a/boot/startup/mynewt_cortex_m7.ld b/boot/startup/mynewt_cortex_m7.ld
index 18db83a6d..0d5031827 100644
--- a/boot/startup/mynewt_cortex_m7.ld
+++ b/boot/startup/mynewt_cortex_m7.ld
@@ -90,7 +90,7 @@ SECTIONS
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
- *(.text*) /* .text* sections (code) */
+ *(.text.*) /* .text* sections (code) */
KEEP(*(.init))
KEEP(*(.fini))