aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2019-08-01 07:42:18 -0400
committerHelge Deller <deller@gmx.de>2019-08-01 08:17:53 -0400
commite50beea8e7738377b4fa664078547be338038ff9 (patch)
tree5d6217915affe7298efedca1d42aa1c6ec0a897e /arch/parisc
parent3fe6c873af2f2247544debdbe51ec29f690a2ccf (diff)
parisc: Strip debug info from kernel before creating compressed vmlinuz
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 <James.Bottomley@HansenPartnership.com> Reported-by: Sven Schnelle <svens@stackframe.org> Cc: stable@vger.kernel.org # v4.20+ Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/boot/compressed/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/boot/compressed/Makefile b/arch/parisc/boot/compressed/Makefile
index 2da8624e5cf6..3b28d1b92218 100644
--- a/arch/parisc/boot/compressed/Makefile
+++ b/arch/parisc/boot/compressed/Makefile
@@ -55,7 +55,8 @@ $(obj)/misc.o: $(obj)/sizes.h
55CPPFLAGS_vmlinux.lds += -I$(objtree)/$(obj) -DBOOTLOADER 55CPPFLAGS_vmlinux.lds += -I$(objtree)/$(obj) -DBOOTLOADER
56$(obj)/vmlinux.lds: $(obj)/sizes.h 56$(obj)/vmlinux.lds: $(obj)/sizes.h
57 57
58$(obj)/vmlinux.bin: vmlinux 58OBJCOPYFLAGS_vmlinux.bin := -R .comment -R .note -S
59$(obj)/vmlinux.bin: vmlinux FORCE
59 $(call if_changed,objcopy) 60 $(call if_changed,objcopy)
60 61
61vmlinux.bin.all-y := $(obj)/vmlinux.bin 62vmlinux.bin.all-y := $(obj)/vmlinux.bin