mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
nucleo-g431kb: Update after the revert of "Make: use gcc as LD"
Remove -Wl, in LDFLAGS.
This commit is contained in:
committed by
Xiang Xiao
parent
58bdcbab9b
commit
a461256aef
@@ -57,8 +57,8 @@ CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
|||||||
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
||||||
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
||||||
|
|
||||||
NXFLATLDFLAGS1 = -r -Wl,-d -Wl,-warn-common
|
NXFLATLDFLAGS1 = -r -d -warn-common
|
||||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -Wl,-no-check-sections
|
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
|
||||||
LDNXFLATFLAGS = -e main -s 2048
|
LDNXFLATFLAGS = -e main -s 2048
|
||||||
|
|
||||||
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
ifneq ($(CROSSDEV),arm-nuttx-elf-)
|
||||||
@@ -69,7 +69,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Provide map file needed by the "Memory Allocation" view in Eclipse:
|
# 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
|
# Embed absolute path to source file in debug information so that Eclipse
|
||||||
# source level debugging won't get confused. See:
|
# source level debugging won't get confused. See:
|
||||||
|
|||||||
Reference in New Issue
Block a user