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 f080e5534 boot/startup: Add missing __text symbol
f080e5534 is described below
commit f080e55347c04ac7c2dfd5e7b65c27f958043d46
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Thu Feb 20 15:16:34 2025 +0100
boot/startup: Add missing __text symbol
__text symbol is needed when OS_CRASH_STACKTRACE
is enabled. It was lost accidentally where common
autogenerated linker script were added.
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, 10 insertions(+)
diff --git a/boot/startup/mynewt_cortex_m0.ld b/boot/startup/mynewt_cortex_m0.ld
index b74fd10de..00a13e75f 100644
--- a/boot/startup/mynewt_cortex_m0.ld
+++ b/boot/startup/mynewt_cortex_m0.ld
@@ -101,6 +101,8 @@ SECTIONS
/* The program code and other data goes into internal image location */
.text :
{
+ __text = .;
+
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text.*) /* .text* sections (code) */
diff --git a/boot/startup/mynewt_cortex_m3.ld b/boot/startup/mynewt_cortex_m3.ld
index b74fd10de..00a13e75f 100644
--- a/boot/startup/mynewt_cortex_m3.ld
+++ b/boot/startup/mynewt_cortex_m3.ld
@@ -101,6 +101,8 @@ SECTIONS
/* The program code and other data goes into internal image location */
.text :
{
+ __text = .;
+
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text.*) /* .text* sections (code) */
diff --git a/boot/startup/mynewt_cortex_m33.ld
b/boot/startup/mynewt_cortex_m33.ld
index b74fd10de..00a13e75f 100644
--- a/boot/startup/mynewt_cortex_m33.ld
+++ b/boot/startup/mynewt_cortex_m33.ld
@@ -101,6 +101,8 @@ SECTIONS
/* The program code and other data goes into internal image location */
.text :
{
+ __text = .;
+
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text.*) /* .text* sections (code) */
diff --git a/boot/startup/mynewt_cortex_m4.ld b/boot/startup/mynewt_cortex_m4.ld
index b74fd10de..00a13e75f 100644
--- a/boot/startup/mynewt_cortex_m4.ld
+++ b/boot/startup/mynewt_cortex_m4.ld
@@ -101,6 +101,8 @@ SECTIONS
/* The program code and other data goes into internal image location */
.text :
{
+ __text = .;
+
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text.*) /* .text* sections (code) */
diff --git a/boot/startup/mynewt_cortex_m7.ld b/boot/startup/mynewt_cortex_m7.ld
index b74fd10de..00a13e75f 100644
--- a/boot/startup/mynewt_cortex_m7.ld
+++ b/boot/startup/mynewt_cortex_m7.ld
@@ -101,6 +101,8 @@ SECTIONS
/* The program code and other data goes into internal image location */
.text :
{
+ __text = .;
+
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text.*) /* .text* sections (code) */