[XTENSA] Fix makefile to work with binutils-2.18.
[safe/jmp/linux-2.6] / arch / xtensa / boot / boot-elf / Makefile
index 9cf50ef..08e8814 100644 (file)
@@ -21,7 +21,7 @@ boot-y                := bootstrap.o
 OBJS           := $(addprefix $(obj)/,$(boot-y))
 
 Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
-       $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \
+       $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
                vmlinux vmlinux.tmp
        $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
                --add-section image=vmlinux.tmp \
@@ -33,7 +33,7 @@ Image:        vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
        rm -f $@.tmp vmlinux.tmp
 
 Image.initrd:  vmlinux $(OBJS)
-       $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \
+       $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
                --add-section .initrd=arch/$(ARCH)/boot/ramdisk \
                --set-section-flags .initrd=contents,alloc,load,load,data \
                vmlinux vmlinux.tmp