Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1751041ybg; Thu, 30 Jul 2020 01:27:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRD38qn1bbK4mQyA9+A0MXt86v+QaB5QkalI2cmB5c0Q6x34nGjN3EuQHhQxnoAC4NqzkQ X-Received: by 2002:a17:906:ca5a:: with SMTP id jx26mr356589ejb.62.1596097665152; Thu, 30 Jul 2020 01:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596097665; cv=none; d=google.com; s=arc-20160816; b=TTuZp9fBVCnIUrd/U3IXFc+BR3agC29/8tE4Bbz9JuKzKnKVtsBd+N0HZpneU2rF60 kwle0GjngSPimM0XOPvMq5u9EqCoVZs60dncexVXESFVwM3Dx47spd4OA77gyRPuBFmT urltF2lVPBlf1mwIf6jU1DbPZKVZWQjcIkJ6kDjRRmq+llAUo7TQT59F+yER0qpUWQxl T5ETsUWb3KA9ouzecNKOxq0R26ft7AvsCaG0qzRQsxcw92kgSdHbgtOPV1gs/AzToh5N 2GsyFf9XkvTs4y3WTW+313izECuRdEdoWHZmWw64G3zX4R4KjpZQfCvA/6FxhTaScNKp XeMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ytlVe9sZxGP/GyzK5t16szL2Z6Kr4xJ+2Bn7kTuz0dI=; b=e5w/yOAt9DjrXdLWmGG8u603y7CrEFbcZIsHF/PhtowSpYle2tPnZwORDXPB1RVF1q S7fsVzzIDPCB43pGJnw+wIf2Ug6GTrQycQFD/jjiedKfmVMwFc+YUynHzK7dinGZq8zC SJ+y40PspC+BU/DRb6uH0XPNqnoZ58WkyFeRzdsLdGGwm3KUwpdC1z1VApL82oph3ly1 cTo2/7etMs7HW4/E487DJTHHZa1Xh7uyz2HHb6GKHPP5T1hEwDCPMIQiSlD4k/yN3ar8 xU8zBiXDkwkOGFWCIGILwe7HUy+NbKmDN7Na2lrw2sS7VRMtOJduOkaUJP8qaK5rAd05 oB1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aklJhmrD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc22si2877982ejb.317.2020.07.30.01.27.23; Thu, 30 Jul 2020 01:27:45 -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=pass header.i=@gmail.com header.s=20161025 header.b=aklJhmrD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729130AbgG3I1J (ORCPT + 99 others); Thu, 30 Jul 2020 04:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729002AbgG3I1I (ORCPT ); Thu, 30 Jul 2020 04:27:08 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A64BC061794 for ; Thu, 30 Jul 2020 01:27:08 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id o1so13394032plk.1 for ; Thu, 30 Jul 2020 01:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ytlVe9sZxGP/GyzK5t16szL2Z6Kr4xJ+2Bn7kTuz0dI=; b=aklJhmrDNqJpPXrQLz8erspyzDFRr2txAah3NT49bYgkhhMKzFYO4EgfbucHmSCpBC mtjfmDBYhWH+iQdDCvVpUtqEyvhoc0RbAjNrQsRIScUNNMHZfATUyrre1xu138gkgugo OKuXf5+yjRiD4Q0C/QL0U809NjxV0XjEjUhKvkUoe4jn7iTOxbsKyugN5edwqa4OcWy7 aFfyVbfXnDO8sRm32RYEOJyvaFcD7g72TTzncvS1+mdZVRxaKYoLA6psYuYFGU7d129N lSF2L2gqxLf+SnwRtPSjr8rp5MOyAAHRFbCVL5FLNsqUJeO0sFQM/vOP71me795CPOJh opAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ytlVe9sZxGP/GyzK5t16szL2Z6Kr4xJ+2Bn7kTuz0dI=; b=UiK0a7f7PdKiDQ8i9ll00qJjLdyGCUyQWTPMbhgYk7QoNVd3SW/y+Nb4R8tWFjTdmk 0qNRnHXdxlrtzvWBg0kKbwDJBibmmSqo0vKXJB4NP+5FkEZqkIQQ8Vlk0E+WA5zDNc2P 2UHL+mCLtj2TCD/IV3Cmmwqezlk/ODAkh87pXu/MFzX5lf6iYtFZLXKcngW4raq0vdoF +7b050LBM4HMqkG4ly41S8xQlnrs44sTv/oW/ThofXWuJIWTXdM5V8LUe9+UEXScf5++ eegARsQI/Il37bWDlRoqZmtuZaJbJ4uh1g1h3g9D5y7FkKp/ujg4Imn0onHHJ9SzAS1O LHHw== X-Gm-Message-State: AOAM532QAYaPbrKHbF2cY7K1m3FEnScaZBcyZcjsUI+nYppvShphuaci RyLWglTDcr+1prGa6cQ3CA== X-Received: by 2002:a17:90b:f09:: with SMTP id br9mr9916108pjb.11.1596097627997; Thu, 30 Jul 2020 01:27:07 -0700 (PDT) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id h15sm5104315pjc.14.2020.07.30.01.27.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2020 01:27:07 -0700 (PDT) From: Pingfan Liu To: x86@kernel.org Cc: Pingfan Liu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Hans de Goede , Nick Desaulniers , Arvind Sankar , Steve Wahl , linux-kernel@vger.kernel.org Subject: [PATCH] x86/purgatory: strip debug info Date: Thu, 30 Jul 2020 16:26:49 +0800 Message-Id: <1596097609-14118-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is useless to keep debug info in purgatory. And discarding them saves about 200K space. Original: 259080 kexec-purgatory.o Stripped: 29152 kexec-purgatory.o Signed-off-by: Pingfan Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Hans de Goede Cc: Nick Desaulniers Cc: Arvind Sankar Cc: Steve Wahl Cc: linux-kernel@vger.kernel.org To: x86@kernel.org --- arch/x86/purgatory/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 088bd76..4340ae6 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -16,7 +16,7 @@ CFLAGS_sha256.o := -D__DISABLE_EXPORTS # When linking purgatory.ro with -r unresolved symbols are not checked, # also link a purgatory.chk binary without -r to check for unresolved symbols. -PURGATORY_LDFLAGS := -e purgatory_start -nostdlib -z nodefaultlib +PURGATORY_LDFLAGS := -e purgatory_start -nostdlib -z nodefaultlib -S LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS) LDFLAGS_purgatory.chk := $(PURGATORY_LDFLAGS) targets += purgatory.ro purgatory.chk -- 2.7.5