You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/10/07 14:45:18 UTC
(nuttx) 01/06: boards/mps2-an500: Use the common ELF link flags.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 602affafe875a00dcfa40205e002dee15714242d
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Tue Oct 6 18:55:03 2026 +0200
boards/mps2-an500: Use the common ELF link flags.
The board set LDELFFLAGS to "-r -e main" after it included Toolchain.defs.
This replaced the flags that Toolchain.defs sets for a loadable module.
With CONFIG_FDPIC, a module then links as a relocatable object and not as
an FDPIC shared object. A module that names a library does not link at
all: "attempted static link of dynamic object".
9ed93c6b1ee moved these flags into Toolchain.defs for all boards, and
dae3b8e5516 removed the same lines from mps3-an547. Remove them here
too.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
boards/arm/mps/mps2-an500/scripts/Make.defs | 5 -----
1 file changed, 5 deletions(-)
diff --git a/boards/arm/mps/mps2-an500/scripts/Make.defs b/boards/arm/mps/mps2-an500/scripts/Make.defs
index e5954786f0b..fcf783fcb09 100644
--- a/boards/arm/mps/mps2-an500/scripts/Make.defs
+++ b/boards/arm/mps/mps2-an500/scripts/Make.defs
@@ -62,8 +62,3 @@ AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)$(DELIM)binfmt$(DELIM)libnxflat$(DELIM)gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
-
-# ELF module definitions
-
-LDELFFLAGS = -r -e main
-LDELFFLAGS += -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/elf/gnu-elf.ld)