mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-14 19:08:19 +08:00
kernel build:avoid multiple definition ld script
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -98,4 +98,9 @@ ifeq ($(CONFIG_BINFMT_ELF_RELOCATABLE),y)
|
||||
LDELFFLAGS += -r
|
||||
endif
|
||||
LDELFFLAGS += -e __start -Bstatic
|
||||
|
||||
# Remove other ld scripts, just use import ld scripts
|
||||
#
|
||||
LDFILE := $(filter -T %.ld, $(LDELFFLAGS))
|
||||
LDELFFLAGS := $(filter-out $(LDFILE), $(LDELFFLAGS))
|
||||
LDELFFLAGS += $(addprefix -T,$(call CONVERT_PATH,$(TOPDIR)/scripts/gnu-elf.ld))
|
||||
|
Reference in New Issue
Block a user