Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1800651pxa; Thu, 6 Aug 2020 16:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycjyArqRFCoYJ32e1G28eKie5BuC52Q8AkULMTLbQ16h1lfEZ5E2rNwiJDEBn0J9uR2u+o X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr6585814ejb.405.1596757462926; Thu, 06 Aug 2020 16:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596757462; cv=none; d=google.com; s=arc-20160816; b=KHijZ2In32LrkqInM0TD3pTDdyG4tCog2sY0ewQ/EuHfwOaC3R0nYt41x07AMMUHUo A006Vij6dpgY8k1ZKGEFYPjEGcZWf/SJgU3jn7n3FXiSUO+ACr97ev7lDgOz+jlKYRWl FRGFYW5ImN73xLJcHunVbeSmJtKw9GAcExkrr/9hNA91vl2BpIoqwAlf5Khh9FANNB3s lEtHXWCYLTJ+nitvLLaFYkHmPX7rCs9RItVTsEafV8PpJATmL8w8C9DJhOKU2yzO3YWk eRF8f1jz0hANja1MqJ9WkVGJgQW5AMQuM+ibGeutBh+H4MsmDl7eAO3+4O2lRVmD4zTv oo+Q== 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=FDnsT3TJ0pTh+XRVejYB3KI1Qgf/MQI0koJ/p170YOo=; b=WjWvc/kJ76M2+aawxYJO6BxDv9j3lJ2mpgJTeLdVPw4QbnV9Q6Ubw7VlLCI/vFffDi h+WeBpYYy6BbcfMoYnUytB2pISHcVlLT1WYCQTon+MEbM3PEM/tFZHEy3+aQuMzyVYg0 DGTx5YmssZf5f3CZYo4RAzMzATmUSoO1CTpLThye32FiOms8lIfykZuZZrHA6cDSqeT0 nc2VB1jlY+SbJ7IVbtqhdRBocKJo6p7HtFdOV5BqekWku6xuUiWL7YwwpzkAXJsEk2+s +Up/swlmVWpJuuCw5E9cjQX0yplcx7gML4oTCjem7uMcXaRWAeqG2IkQlwB9BPqrvbYZ SQ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=u2o2bFpg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 l11si4548458ejx.11.2020.08.06.16.44.00; Thu, 06 Aug 2020 16:44:22 -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=u2o2bFpg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S1727831AbgHFXkp (ORCPT + 99 others); Thu, 6 Aug 2020 19:40:45 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60862 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgHFXiq (ORCPT ); Thu, 6 Aug 2020 19:38:46 -0400 Date: Thu, 06 Aug 2020 23:38:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596757124; 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=FDnsT3TJ0pTh+XRVejYB3KI1Qgf/MQI0koJ/p170YOo=; b=u2o2bFpgl59UEtQivvuwxnBUs1BaxrmsZR06PCS+dc+PhGJG3fLBnS668MWgwN2tl+/rpK V7Mz9uikoQ91LkRg+FBhr3Ojd8h/JgVsrArACy9BEZZktqVLyhxZs7sSSju8QOUoGGfYLv QL3UobstpTRAZONRKTEl94pot5sTmLfzhQkW6aGfgOvIXIvL5NpiCmz2DSv17DokAk1ve4 tUdoFjIzDfZ0TjYdppiDzvqDYPT8XYwlr1S+FV/mfJWzrZpvoCcT+dsvPcC5+AyDB5hLk6 DGmBq8VtqClHkr0CrCoWQdX6iVjvDHAKuEAjojciBZH3VfqjIs2R6KPMozcY6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596757124; 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=FDnsT3TJ0pTh+XRVejYB3KI1Qgf/MQI0koJ/p170YOo=; b=QlyUNEEjeuQytYkrVVhJT/uqHRdVsWi3R62p8liKGbsRCV8CpLL6pPFzNCijrw05I71/nV elUJjco286wufpDw== 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: <159675712366.3192.8333257283870120334.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: 52416ffcf823ee11aa19792715664ab94757f111 Gitweb: https://git.kernel.org/tip/52416ffcf823ee11aa19792715664ab94757f111 Author: Pingfan Liu AuthorDate: Mon, 03 Aug 2020 13:49:48 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 07 Aug 2020 01:32:00 +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)