Skip to content

Commit 21a6a13

Browse files
anjiahao1xiaoxiang781216
authored andcommitted
kernel build:avoid multiple definition ld script
Signed-off-by: anjiahao <[email protected]>
1 parent 61551aa commit 21a6a13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

import/Make.defs

+5
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ ifeq ($(CONFIG_BINFMT_ELF_RELOCATABLE),y)
9898
LDELFFLAGS += -r
9999
endif
100100
LDELFFLAGS += -e __start -Bstatic
101+
102+
# Remove other ld scripts, just use import ld scripts
103+
#
104+
LDFILE := $(filter -T %.ld, $(LDELFFLAGS))
105+
LDELFFLAGS := $(filter-out $(LDFILE), $(LDELFFLAGS))
101106
LDELFFLAGS += $(addprefix -T,$(call CONVERT_PATH,$(TOPDIR)/scripts/gnu-elf.ld))

0 commit comments

Comments
 (0)