This is an automated email from the ASF dual-hosted git repository.
archer 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 6c6a54b0c9 ld: fix warning reported by GCC 12 linker
6c6a54b0c9 is described below
commit 6c6a54b0c98abf8f62b706d55012a991bc04c3b6
Author: Petro Karashchenko <[email protected]>
AuthorDate: Sun Mar 26 16:33:53 2023 +0300
ld: fix warning reported by GCC 12 linker
warning: nuttx has a LOAD segment with RWX permissions
Signed-off-by: Petro Karashchenko <[email protected]>
---
arch/arm/src/common/Toolchain.defs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/src/common/Toolchain.defs
b/arch/arm/src/common/Toolchain.defs
index 96892ca6fb..a35e0aabb8 100644
--- a/arch/arm/src/common/Toolchain.defs
+++ b/arch/arm/src/common/Toolchain.defs
@@ -236,6 +236,9 @@ else
ifeq ($(GCCVER),12.2.1)
ARCHOPTIMIZATION += --param=min-pagesize=0
+ ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
+ LDFLAGS += --no-warn-rwx-segments
+ endif
endif
endif