mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 23:08:44 +00:00
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".9ed93c6b1emoved these flags into Toolchain.defs for all boards, anddae3b8e551removed the same lines from mps3-an547. Remove them here too. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
parent
9e8c81cf4c
commit
602affafe8
1 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue