Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1557387pxa; Thu, 6 Aug 2020 10:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaXrJvkgAOT4tv3Hp8m0JUOAMruscVFe41/dBcaIof3ahfMQ1LQJ+UWm3Y1p7ymtpYOVDl X-Received: by 2002:a17:906:260c:: with SMTP id h12mr5548745ejc.457.1596733967555; Thu, 06 Aug 2020 10:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596733967; cv=none; d=google.com; s=arc-20160816; b=h7rWOkljMBsrKjIanhh4i1SiA7HT5CtCiHl8xClIZAhfTIaFvDCwVPwKK/ygk6YULr eYTYqzNbSjXTUQ0IEOfwx03B2xZ9Cr3p6RNaOb8KVVtBlzzxUDL07djAXq+f+T67ZaLJ EkxrSD0Z73458SeMK1Lq6JC+QtrVhYNgllXNKmTFA5Qp1dHG9Ny7RlannrArfwQyvxSj yXEzSWeR1TyYtw3lHB0+VZUgIv5WnbBNwNeegWVrzebHM5RLJz2STjbubSc5Si+gWQKi yPLnwrlkJhSzOCkyvgfSl72DBJEUvT7j3Ix/hbo6K1RBqOhUaqQFM9YEqS4OpkPxFvz2 2mMg== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=+utsXAeGhNXjIKqlvfGdymA67VasGXGDyHkHdtuCecA=; b=Eg5fbzBb6DPW12jsPkRiiHV8xwDJvrH5t8AsEkyoK5Zo0ExbIVfz0xJQJ9VkoM8gdp UDdztsOmIQ3ucyMZsvnEEkKPfPj73C4IVbXztAEmwN5Analhcf8nkXZfcIsb3Yz7ixn3 WeMvic2szp4vD2IsiS4k/PQ8HLH2fhWCtf/IciOHhai7UgydHhdzrB7qHVngPbdFZodx CAl7KZQ5iMEp+mywbLzuuFCd82yv1dW3AG1fN8YUPt4RJYIAX0TpMXKb2qCA9xDLIoYx U6enl+6vopvYsH4vVtzml2Nx817fItwQmIJiG25NuHlGCwIK+fF+xHrqWzeZcFNV7TuP U7hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=sMJ2pQSB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=xtt43iIN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si3520619edx.215.2020.08.06.10.12.23; Thu, 06 Aug 2020 10:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=sMJ2pQSB; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=xtt43iIN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgHFRL5 (ORCPT + 99 others); Thu, 6 Aug 2020 13:11:57 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:58954 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729980AbgHFRKJ (ORCPT ); Thu, 6 Aug 2020 13:10:09 -0400 Date: Thu, 06 Aug 2020 17:10:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596733805; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+utsXAeGhNXjIKqlvfGdymA67VasGXGDyHkHdtuCecA=; b=sMJ2pQSB54/aYaWb27/Io8Os5snnYlvS78cdTTFtAawDsiBIdu5exjJAjF6ThS9cYeKgdW yNmv6O8522ZbF/uyfZu8/d40n+Gnl7ZbfzyTMgkwjw4WXEbInaTeDlUGZtgC4viELxSCkC VVWpTJTxgNwvWm827iY0o2aCY/mN4VHNW8roZmwcTojCcGTMhSqTXi1uTX8OE9/W3zJTtK 5RF2Kpj8FUZQuXPhrH49GrfjCYmWLYFijCYyKAs8EtoG6aR9E9wvH2txjhUAbuFJykZdOv /5mQLpPeFvStLq/su6TZY7XG+z7C/wxSOicN/1vbTxf5r5Yfd5rrtteTQmKgMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596733805; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+utsXAeGhNXjIKqlvfGdymA67VasGXGDyHkHdtuCecA=; b=xtt43iINyy5QMehIAXrlXVCW7sVCkGcjGSByvvTr2vr5+Bfg8xmfRNGYpJP5ldh5J9bQMX q02NV1qK/m+GkKBA== From: "tip-bot2 for Pingfan Liu" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/purgatory: Don't generate debug info for purgatory.ro Cc: Pingfan Liu , Ingo Molnar , Nick Desaulniers , Steve Wahl , Dave Young , x86 , LKML In-Reply-To: <1596433788-3784-1-git-send-email-kernelfans@gmail.com> References: <1596433788-3784-1-git-send-email-kernelfans@gmail.com> MIME-Version: 1.0 Message-ID: <159673380472.3192.5214197870543431131.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: b031cf7752a82fefa6818a788d906d14f533afa9 Gitweb: https://git.kernel.org/tip/b031cf7752a82fefa6818a788d906d14f533afa9 Author: Pingfan Liu AuthorDate: Mon, 03 Aug 2020 13:49:48 +08:00 Committer: Ingo Molnar CommitterDate: Thu, 06 Aug 2020 15:29:25 +02:00 x86/purgatory: Don't generate debug info for purgatory.ro Purgatory.ro is a standalone binary that is not linked against the rest of the kernel. Its image is copied into an array that is linked to the kernel, and from there kexec relocates it wherever it desires. Unlike the debug info for vmlinux, which can be used for analyzing crash such info is useless in purgatory.ro. And discarding them can save about 200K space. Original: 259080 kexec-purgatory.o Stripped debug info: 29152 kexec-purgatory.o Signed-off-by: Pingfan Liu Signed-off-by: Ingo Molnar Reviewed-by: Nick Desaulniers Reviewed-by: Steve Wahl Acked-by: Dave Young Link: https://lore.kernel.org/r/1596433788-3784-1-git-send-email-kernelfans@gmail.com --- arch/x86/purgatory/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 088bd76..d24b43a 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -32,7 +32,7 @@ KCOV_INSTRUMENT := n # make up the standalone purgatory.ro PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel -PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss +PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss -g0 PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING PURGATORY_CFLAGS += $(call cc-option,-fno-stack-protector) @@ -64,6 +64,9 @@ CFLAGS_sha256.o += $(PURGATORY_CFLAGS) CFLAGS_REMOVE_string.o += $(PURGATORY_CFLAGS_REMOVE) CFLAGS_string.o += $(PURGATORY_CFLAGS) +AFLAGS_REMOVE_setup-x86_$(BITS).o += -Wa,-gdwarf-2 +AFLAGS_REMOVE_entry64.o += -Wa,-gdwarf-2 + $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE $(call if_changed,ld)