diff options
author | Helge Deller <deller@gmx.de> | 2019-08-01 13:42:18 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-08-01 14:17:53 +0200 |
commit | e50beea8e7738377b4fa664078547be338038ff9 (patch) | |
tree | 5d6217915affe7298efedca1d42aa1c6ec0a897e /arch/parisc | |
parent | parisc: Fix build of compressed kernel even with debug enabled (diff) | |
download | linux-e50beea8e7738377b4fa664078547be338038ff9.tar.xz linux-e50beea8e7738377b4fa664078547be338038ff9.zip |
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/Makefile | 3 |
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 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 |