nucleo-g431kb: Update after the revert of "Make: use gcc as LD"

Remove -Wl, in LDFLAGS.
This commit is contained in:
YAMAMOTO Takashi 2021-06-17 09:17:52 +09:00 committed by Xiang Xiao
parent 58bdcbab9b
commit a461256aef

View File

@ -57,8 +57,8 @@ CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
NXFLATLDFLAGS1 = -r -Wl,-d -Wl,-warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -Wl,-no-check-sections
NXFLATLDFLAGS1 = -r -d -warn-common
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
LDNXFLATFLAGS = -e main -s 2048
ifneq ($(CROSSDEV),arm-nuttx-elf-)
@ -69,7 +69,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
endif
# Provide map file needed by the "Memory Allocation" view in Eclipse:
LDFLAGS += -Wl,-Map=$(TOPDIR)/NuttX.map -Wl,--gc-sections
LDFLAGS += -Map=$(TOPDIR)/NuttX.map --gc-sections
# Embed absolute path to source file in debug information so that Eclipse
# source level debugging won't get confused. See: