From: Hans-Christian Egtvedt Date: Wed, 26 Nov 2008 10:40:42 +0000 (+0100) Subject: avr32: remove .note.gnu.build-id section when making vmlinux.bin X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1892cb8d2787280a5d9aacf8f58cf18f5b6fb2f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git avr32: remove .note.gnu.build-id section when making vmlinux.bin This patch will remove the section .note.gnu.build-id added in binutils 2.18 from the vmlinux.bin binary. Not removing this section results in a huge multiple gigabyte binary and likewize large uImage. Signed-off-by: Hans-Christian Egtvedt Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/boot/images/Makefile b/arch/avr32/boot/images/Makefile index 219720a47bf..1848bf0d7f6 100644 --- a/arch/avr32/boot/images/Makefile +++ b/arch/avr32/boot/images/Makefile @@ -10,7 +10,7 @@ MKIMAGE := $(srctree)/scripts/mkuboot.sh extra-y := vmlinux.bin vmlinux.gz -OBJCOPYFLAGS_vmlinux.bin := -O binary +OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id $(obj)/vmlinux.bin: vmlinux FORCE $(call if_changed,objcopy)