Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp95652ybg; Sat, 23 May 2020 08:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQHRO0LnWrtCOjh6d6fSug30Ywgxr8Nd5ysyFuYYm8GPi7bQ9PwEYppZadMdS+Re6mbT71 X-Received: by 2002:a17:906:1751:: with SMTP id d17mr13121990eje.314.1590247214988; Sat, 23 May 2020 08:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590247214; cv=none; d=google.com; s=arc-20160816; b=VWoiXInEXPRE0Hfwj4SEPel2eTV2UhDaHtG5vL+aUEzeXeCXVw4Bl5YboSPisl6wlc e759KPYFVH2agCfZgRTf2HAAQO62iaDWcP3RJBE6Kt1JiF3TT1Sz3z9ruWaX4vUpIKze 7LS6YXonDmb3Qi9VhqgA0kJrqqvCWF1YLYwjiZuEBZOjYmFeySqtwnYLF/nHnYqvIV0k oVm8xP1JHXt2vh1saruRYzs187f7xKP2jBgDlTUdUQXBOG+3OZkeUVtOOzLF9dKZ1Ol1 lV5xIZqSUz5NZmJdNNBjvtVWdbw+EwMkhIttN7uMSUehBtX/+ouD632R40tYFUALN982 UUQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=/4zaO2l4trXivdy+pqmD1CXp5UVbWNbY3ylvbv3siyc=; b=KMTUDStcWM5sZ72OiAw9oRL63dqBKtOaeMzwBD2SfB5pinOtqTlnyczQCet/Jh2M2v C5NCtwGw0rYhgLhxHHJBSzUlXkVSRs+F1RecGu6gocjzF5ReEYxHpqQC9ViWiws+ZKP3 2DQfy7vIspfHXZt1Zr4qEJFiVcWVeFlZob8+Gworbb479tYZttsq/U9qsdHhp7i9YUGA 3+dNWIYe1F+U3zASUF9d4qXs8OmtMSdUznjKFtCV83BkS2FLO85v3qAXYdbnhCF1c2SZ syhxPcvcnnAnx1llyivVWWbxytAxTBP7NW2DSD2LkvFqo34ERmhyTSbG7OWi8syulOJ8 iC6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=b6JydElE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si7614591edj.301.2020.05.23.08.19.51; Sat, 23 May 2020 08:20:14 -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=@gmail.com header.s=20161025 header.b=b6JydElE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387961AbgEWPSB (ORCPT + 99 others); Sat, 23 May 2020 11:18:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387815AbgEWPSB (ORCPT ); Sat, 23 May 2020 11:18:01 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF1CC061A0E; Sat, 23 May 2020 08:18:01 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id y1so38332qtv.12; Sat, 23 May 2020 08:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/4zaO2l4trXivdy+pqmD1CXp5UVbWNbY3ylvbv3siyc=; b=b6JydElEayk5uybsrcH4AQMk6EYdVHMAhwri0PCpoQruuswyuLmJvmUQB7GtQaARcM lW+TOIln6A0quekqsW5wChIoOHbuhBsrksKzupmT5Y8Z9le3OPTS+7+vSnojnTqAFp/u 1vfLZS/I8EA7GJvRmf0Db7HWOQVW2sepTKOiasbKsFZVfbofhgpOyu5Xn694jDoNbNmr GzabGS25G1cp/eGZ8rCwSLScgzoplnqGcYcpVhemQcAVdFXvWTcK0SPwgqTOYr5htuqc mr0Ux2Injh2b/r0/fPIcpTHwuYgZdU/KJmMf/RFnx9+FFZrB7xSaHrs8VHbHFP3xKlgS 2+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=/4zaO2l4trXivdy+pqmD1CXp5UVbWNbY3ylvbv3siyc=; b=h+VmlI1JdsLAj80GK0tg+EsAO4t2yarnVYIdvireYjapbkN41a75YVQs9NKmPuvXMB sel19hTxHEUjmhD8ZqTK4G0Qo7cDtKfNu72EVrMcoOvmQv4Qxbhs/eLmmQv15kVV5V8P Uj1TdUDjk8CrK2/K/MsM77cI0PWU2lSNL/MasXS9AQYaXHQVthPG7y8wVvzJVFuESx9J WLCIK6xGWKDgxEHf6MFjV87qxmOLFmlrAC8iJsPI+yU0wMtxOQdj2DxQCbbj5g5yvSkX lNtqQHJEcCZBI8ImWDr622Y5Cj32UdDbf0b5oekZ6bpFy76wFSEoIutBBaESNhMhhzDY uwCw== X-Gm-Message-State: AOAM532sqmyycT6sUerZkUo+waVg7EvGzFvOSPTacuQYX7Roe9m4t8FY L8ma/U8Fv7y+Vzp7sxcGvL0= X-Received: by 2002:aed:206c:: with SMTP id 99mr9674188qta.87.1590247080448; Sat, 23 May 2020 08:18:00 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id t189sm484512qkc.87.2020.05.23.08.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 08:18:00 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Sat, 23 May 2020 11:17:58 -0400 To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Maarten Lankhorst , Linus Torvalds , Arvind Sankar Subject: Re: [PATCH v2 3/3] x86/boot/compressed: get rid of GOT fixup code Message-ID: <20200523151758.GB1189358@rani.riverdale.lan> References: <20200523120021.34996-1-ardb@kernel.org> <20200523120021.34996-4-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200523120021.34996-4-ardb@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 23, 2020 at 02:00:21PM +0200, Ard Biesheuvel wrote: > In a previous patch, we have eliminated GOT entries from the decompressor > binary and added an assertion that the .got section is empty. This means > that the GOT fixup routines that exist in both the 32-bit and 64-bit > startup routines have become dead code, and can be removed. > > Signed-off-by: Ard Biesheuvel > diff --git a/arch/x86/boot/compressed/vmlinux.lds.S b/arch/x86/boot/compressed/vmlinux.lds.S > index 60a99dfb9d72..d91fdda51aa8 100644 > --- a/arch/x86/boot/compressed/vmlinux.lds.S > +++ b/arch/x86/boot/compressed/vmlinux.lds.S > @@ -43,9 +43,7 @@ SECTIONS > _erodata = . ; > } > .got : { > - _got = .; > KEEP(*(.got)) > - _egot = .; > } > .got.plt : { > KEEP(*(.got.plt)) > -- > 2.20.1 > I think you can get rid of both the KEEP's here as well?