mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
kernel build:avoid multiple definition ld script
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
61551aa849
commit
21a6a13698
1 changed files with 5 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue