]> Git Repo - linux.git/commitdiff
parisc: Strip debug info from kernel before creating compressed vmlinuz
authorHelge Deller <[email protected]>
Thu, 1 Aug 2019 11:42:18 +0000 (13:42 +0200)
committerHelge Deller <[email protected]>
Thu, 1 Aug 2019 12:17:53 +0000 (14:17 +0200)
Same as on x86-64, strip the .comment, .note and debug sections from the
Linux kernel before creating the compressed image for the boot loader.

Reported-by: James Bottomley <[email protected]>
Reported-by: Sven Schnelle <[email protected]>
Cc: [email protected] # v4.20+
Signed-off-by: Helge Deller <[email protected]>
arch/parisc/boot/compressed/Makefile

index 2da8624e5cf62a9ccebdd01cabe2f32e1465db40..3b28d1b92218f8a427ab7a905880085a2110f106 100644 (file)
@@ -55,7 +55,8 @@ $(obj)/misc.o: $(obj)/sizes.h
 CPPFLAGS_vmlinux.lds += -I$(objtree)/$(obj) -DBOOTLOADER
 $(obj)/vmlinux.lds: $(obj)/sizes.h
 
-$(obj)/vmlinux.bin: vmlinux
+OBJCOPYFLAGS_vmlinux.bin := -R .comment -R .note -S
+$(obj)/vmlinux.bin: vmlinux FORCE
        $(call if_changed,objcopy)
 
 vmlinux.bin.all-y := $(obj)/vmlinux.bin
This page took 0.053245 seconds and 4 git commands to generate.