The vmlinux.64 target was broken when building a relocatable kernel. Fix calling of the correct tool. Signed-off-by: Steven J. Hill <Steven.Hill@xxxxxxxxxx> --- arch/mips/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 1a6bac7..61568df 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -353,6 +353,11 @@ endif quiet_cmd_64 = OBJCOPY $@ cmd_64 = $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ vmlinux.64: vmlinux +ifeq ($(CONFIG_RELOCATABLE)$(CONFIG_64BIT),yy) +# Currently, objcopy fails to handle the relocations in the elf64 +# So the relocs tool must be run here to remove them first + $(call cmd,relocs) +endif $(call cmd,64) all: $(all-y) -- 1.9.1