RE: [PATCH 2/5] MIPS: Fix vmlinux.64 target for CONFIG_RELOCATABLE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steven,

Please could you see if https://patchwork.linux-mips.org/patch/14554/ fixes this issue?

Thanks,
Matt
________________________________________
From: linux-mips-bounce@xxxxxxxxxxxxxx [linux-mips-bounce@xxxxxxxxxxxxxx] on behalf of Steven J. Hill [Steven.Hill@xxxxxxxxxx]
Sent: 22 November 2016 19:44
To: linux-mips@xxxxxxxxxxxxxx
Cc: ralf@xxxxxxxxxxxxxx
Subject: [PATCH 2/5] MIPS: Fix vmlinux.64 target for CONFIG_RELOCATABLE

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





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux