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

FRV: Don't objcopy the GNU build_id note

Don't let objcopy transfer the GNU build_id note into the loadable image as it
is located at address 0 and the image ends up >3G in size.

Signed-off-by: David Howells <dhowells@redhat.com>

+6 -4
+6 -4
arch/frv/boot/Makefile
··· 17 17 INITRD_PHYS = 0x02180000 18 18 INITRD_VIRT = 0x02180000 19 19 20 + OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment 21 + 20 22 # 21 23 # If you don't define ZRELADDR above, 22 24 # then it defaults to ZTEXTADDR ··· 34 32 targets: $(obj)/Image 35 33 36 34 $(obj)/Image: vmlinux FORCE 37 - $(OBJCOPY) -O binary -R .note -R .comment -S vmlinux $@ 35 + $(OBJCOPY) $(OBJCOPYFLAGS) -S vmlinux $@ 38 36 39 37 #$(obj)/Image: $(CONFIGURE) $(SYSTEM) 40 - # $(OBJCOPY) -O binary -R .note -R .comment -g -S $(SYSTEM) $@ 38 + # $(OBJCOPY) $(OBJCOPYFLAGS) -g -S $(SYSTEM) $@ 41 39 42 40 bzImage: zImage 43 41 44 42 zImage: $(CONFIGURE) compressed/$(LINUX) 45 - $(OBJCOPY) -O binary -R .note -R .comment -S compressed/$(LINUX) $@ 43 + $(OBJCOPY) $(OBJCOPYFLAGS) -S compressed/$(LINUX) $@ 46 44 47 45 bootpImage: bootp/bootp 48 - $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@ 46 + $(OBJCOPY) $(OBJCOPYFLAGS) -S bootp/bootp $@ 49 47 50 48 compressed/$(LINUX): $(LINUX) dep 51 49 @$(MAKE) -C compressed $(LINUX)