Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[XTENSA] Fix makefile to work with binutils-2.18.

When building with binutils-2.18, vmlinux includes .note.gnu.build-id
sections that need to be stripped out when building the binary image.
The old .xt.insn sections haven't been used for a long time, so don't
bother stripping them.

Signed-off-by: Bob Wilson <bob.wilson@acm.org>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Bob Wilson and committed by
Chris Zankel
bdd362ff e1088430

+3 -3
+2 -2
arch/xtensa/boot/boot-elf/Makefile
··· 21 21 OBJS := $(addprefix $(obj)/,$(boot-y)) 22 22 23 23 Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds 24 - $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 24 + $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ 25 25 vmlinux vmlinux.tmp 26 26 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ 27 27 --add-section image=vmlinux.tmp \ ··· 33 33 rm -f $@.tmp vmlinux.tmp 34 34 35 35 Image.initrd: vmlinux $(OBJS) 36 - $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 36 + $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ 37 37 --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ 38 38 --set-section-flags .initrd=contents,alloc,load,load,data \ 39 39 vmlinux vmlinux.tmp
+1 -1
arch/xtensa/boot/boot-redboot/Makefile
··· 22 22 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 23 23 24 24 zImage: vmlinux $(OBJS) $(LIBS) 25 - $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 25 + $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ 26 26 vmlinux vmlinux.tmp 27 27 gzip -vf9 vmlinux.tmp 28 28 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \