Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bdd362ff4ff8dc0c697ce87dbb337f3b7341fc46
Commit:     bdd362ff4ff8dc0c697ce87dbb337f3b7341fc46
Parent:     e1088430626b2ec4cd64f2fb7d9fd7c6df5d5824
Author:     Bob Wilson <[EMAIL PROTECTED](none)>
AuthorDate: Fri Feb 1 16:56:32 2008 -0800
Committer:  Chris Zankel <[EMAIL PROTECTED]>
CommitDate: Wed Feb 13 17:45:05 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Chris Zankel <[EMAIL PROTECTED]>
---
 arch/xtensa/boot/boot-elf/Makefile     |    4 ++--
 arch/xtensa/boot/boot-redboot/Makefile |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/xtensa/boot/boot-elf/Makefile 
b/arch/xtensa/boot/boot-elf/Makefile
index 9cf50ef..08e8814 100644
--- a/arch/xtensa/boot/boot-elf/Makefile
+++ b/arch/xtensa/boot/boot-elf/Makefile
@@ -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 [EMAIL PROTECTED] 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
diff --git a/arch/xtensa/boot/boot-redboot/Makefile 
b/arch/xtensa/boot/boot-redboot/Makefile
index 74d15d0..872029b 100644
--- a/arch/xtensa/boot/boot-redboot/Makefile
+++ b/arch/xtensa/boot/boot-redboot/Makefile
@@ -22,7 +22,7 @@ LIBS  := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a
 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 zImage: vmlinux $(OBJS) $(LIBS)
-       $(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
        gzip -vf9 vmlinux.tmp
        $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to