This is an automated email from the ASF dual-hosted git repository.
pkarashchenko 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 40f4cde8f5 armv7-m: Expose section name to allow relocation
40f4cde8f5 is described below
commit 40f4cde8f566e59e88ce32d9a32043559c4a744e
Author: Peter van der Perk <[email protected]>
AuthorDate: Thu Jan 4 10:35:30 2024 +0100
armv7-m: Expose section name to allow relocation
---
arch/arm/src/armv7-m/arm_exception.S | 1 +
libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S | 1 +
libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S | 1 +
libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S | 2 ++
libs/libc/machine/arm/armv7-m/gnu/arch_memset.S | 2 ++
libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S | 1 +
libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S | 1 +
libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S | 1 +
8 files changed, 10 insertions(+)
diff --git a/arch/arm/src/armv7-m/arm_exception.S
b/arch/arm/src/armv7-m/arm_exception.S
index de5e8a3852..809f3aad3d 100644
--- a/arch/arm/src/armv7-m/arm_exception.S
+++ b/arch/arm/src/armv7-m/arm_exception.S
@@ -118,6 +118,7 @@
*/
.text
+ .section .text.exception_common
.thumb_func
.type exception_common, function
exception_common:
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
index 2ea5b23028..c90bd0bf1d 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
@@ -136,6 +136,7 @@
*/
.text
+ .section .text.memchr
.thumb_func
.align 4
.p2align 4,,15
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
index 630ece62b7..e949ec4bc4 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
@@ -94,6 +94,7 @@
.syntax unified
.text
+ .section .text.memcpy
.align 2
.global memcpy
.thumb
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
index 68032ae1da..46705f5a74 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
@@ -35,6 +35,8 @@
.thumb
.syntax unified
+ .text
+ .section .text.memmove
.global memmove
.type memmove, %function
memmove:
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
index 47c2925736..f3c25481b8 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
@@ -35,6 +35,8 @@
.thumb
.syntax unified
+ .text
+ .section .text.memset
.global memset
.type memset, %function
memset:
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
index 0c266bda0c..40d5431162 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
@@ -72,6 +72,7 @@
.macro def_fn f p2align=0
.text
+ .section .text.strcmp
.p2align \p2align
.global \f
.type \f, %function
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
index 2ad81c452c..30de5bdb23 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
@@ -58,6 +58,7 @@
.syntax unified
.text
+ .section .text.strcpy
.align 2
.global strcpy
.thumb
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
b/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
index b40231fa3c..5371db28a2 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
@@ -70,6 +70,7 @@
.macro def_fn f p2align=0
.text
+ .section .text.strlen
.p2align \p2align
.global \f
.type \f, %function