lkml.org 
[lkml]   [2019]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.2 109/131] parisc: Strip debug info from kernel before creating compressed vmlinuz
    Date
    From: Helge Deller <deller@gmx.de>

    commit e50beea8e7738377b4fa664078547be338038ff9 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/parisc/boot/compressed/Makefile | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/arch/parisc/boot/compressed/Makefile
    +++ b/arch/parisc/boot/compressed/Makefile
    @@ -56,7 +56,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

    \
     
     \ /
      Last update: 2019-08-05 15:56    [W:2.527 / U:0.428 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site