Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2762403ybh; Mon, 5 Aug 2019 06:27:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVNRRWCnyv4WZLrR2DuWlkGALnsHl0aCth6nrU70u1Xr5exy7wKSVD2fMBoK0qExLLagcU X-Received: by 2002:a17:902:8689:: with SMTP id g9mr134472830plo.252.1565011646273; Mon, 05 Aug 2019 06:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011646; cv=none; d=google.com; s=arc-20160816; b=RrCa11NPAicuqTRMwNZmlKrvPfaFA0EY8hryTYN4qELA8tE34PkHsPqZl0okVRrQ6z 9Yvx54c4T97E1Q4WHg34sja5AyRYpD5nn2XwNY8NA3SRKCOm2Gb6A3zzFwZ0U9hSYlpb ozOKUqAsI7AgqAGKdslTH1xBbbGd5x6whUJXt5o1qUaOo4/SJ0XFOe0aeuSR6M2a+IRH LAeBIIx9rGFh+z2dZGqWbNpftQfoumffMIjiPQ7DD6eiwU6tFH6z8TiUleE0mIZ5aq2s 8TOGOpTm334Xz1TjrtIuIdzpM8xCBg9j76fg7ou2KQDPAqkz0z5eSZF+TRjnp1VFsuvB O5xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Sq6D0hBdrluiM9iBCIgySYOu/6GPYvZsUjgXS56MWeY=; b=w0kLrQ3UtAVBIqeGMbaLxlFzocip/orx9qpNp76blfk9yFjSEz+E91zrgbiMCPT65c lGQXRSXy1YrHjaEQ5x5+tbzOk3Gi+p5cMU5GdvC6uOq+n4lVuGvlAI8gdcoeS6Js137G /bXvD+lA4/tEWBLu3Gq3ffxESaWvsUBR+6jqOn7JCJmo2uEdbaJ/xUqafBEKMOlaTuZh 1sJ4/gsP4SvOIQTwBmDfhY549p4eq48vIooJdGH/OejSjl2J5UjlweGB/4SlYLYRaT8F zOxzSVXvhsGaO9q8oJlFeZcrASfZLbvQ/GBaz2PjrVCe0VTGGSUdIgtnc/ZeGBV2eYjt hyVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="V/X1n+SI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si15032267plb.238.2019.08.05.06.27.10; Mon, 05 Aug 2019 06:27:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="V/X1n+SI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731376AbfHEN0F (ORCPT + 99 others); Mon, 5 Aug 2019 09:26:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:34612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731354AbfHEN0C (ORCPT ); Mon, 5 Aug 2019 09:26:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD5E220651; Mon, 5 Aug 2019 13:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011562; bh=3Z6DPYk7EHqMo4PyHu7aIciu77HSTlyXUMfDnn5ZPgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V/X1n+SI1TcWLR67MNhOmjKlC9Qm7nLxJJJm6xRj/e0ADK4SLXOHs9KjdsDcX9v4d VcUwmZ1G23r5+rZ7aBxesJpKRqwxdXtKEGpYKdNcaNK3kDkbbt2Q/KoUYAKTDdCXVe jVU3GwlxeYLt221y5PySFaLW2if6L8y3KBqgpkkQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Bottomley , Sven Schnelle , Helge Deller Subject: [PATCH 5.2 109/131] parisc: Strip debug info from kernel before creating compressed vmlinuz Date: Mon, 5 Aug 2019 15:03:16 +0200 Message-Id: <20190805124959.261847620@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Helge Deller 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 Reported-by: Sven Schnelle Cc: stable@vger.kernel.org # v4.20+ Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- 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