1 From 474d77e07d5adfe7976b6f3ed131660867489778 Mon Sep 17 00:00:00 2001
2 From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
3 Date: Wed, 26 Nov 2008 11:38:35 +0100
4 Subject: [PATCH 1/3] avr32: remove .note.gnu.build-id section when making vmlinux.bin
6 This patch will remove the section .note.gnu.build-id added in binutils
7 2.18 from the vmlinux.bin binary. Not removing this section results in a
8 huge multiple gigabyte binary and likewize large uImage.
10 Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
12 diff --git a/arch/avr32/boot/images/Makefile b/arch/avr32/boot/images/Makefile
13 index 219720a..1848bf0 100644
14 --- a/arch/avr32/boot/images/Makefile
15 +++ b/arch/avr32/boot/images/Makefile
16 @@ -10,7 +10,7 @@ MKIMAGE := $(srctree)/scripts/mkuboot.sh
18 extra-y := vmlinux.bin vmlinux.gz
20 -OBJCOPYFLAGS_vmlinux.bin := -O binary
21 +OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id
22 $(obj)/vmlinux.bin: vmlinux FORCE
23 $(call if_changed,objcopy)