Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1123339ybb; Fri, 10 Apr 2020 18:05:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKrgeeP9eAKWivG3XFCCL07934M/SrC6l0/N5WesHrTEP5u1C927+AlgQl1LGeiaJgrEHBp X-Received: by 2002:ac8:480e:: with SMTP id g14mr1654294qtq.333.1586567116130; Fri, 10 Apr 2020 18:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586567116; cv=none; d=google.com; s=arc-20160816; b=BQ2DFeWMg8Q+cjoHLOesqQsWn4fp0Xr0HA+vDBPNDkhbmbID12pkYmioi24zVRI+jt Wc3JZCff2kEiAbAUs2HWiLbfBu0BlB4xhGKkIunFtnDYbNxY0ToLE7PKcE2aQsP1ktlX 71ARTWhQXF7t/sGNZOhLPpimMwNdH31+Z5WRdjatxltYNVyC+N1ggmBXKTXr7Zqm8acC Z3V/smkR2OsZQuKpBOPr87A1VxBzEsj8W7XnR/LvrNF9opypVyAcpWeqFIgzeCCgZ6l9 yHfSs0d/P/3xnxuVU/wNnMYqE+QEiJCpYDMMgK60moPY+OoRDYI6qkCbvm9FlTE/nr+h XFcg== 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=VXcaUuCkQA9gomy0iPBx4UPJzC3ZDlPjCnEVyPOFA3o=; b=wCTtFsUKU1Ey9S072Q3L7FKz8FRp7Ngvybt9x3M6GivzHjMzXGQEh7T/DweFYMr3nU h5yvR7+5X+HErDwAgfDJm/q631cHlz5GRmt/FAyvDthApusHHflHAGmI0XbOyuP5fRS4 mREtrpwy06SXW/PKORv1b7bAE3g/NH8y6P498N4O9uDlbKIRK06YrSBioMrrQjEa60nR XqYLFdDBJjrVKdiLtdWAjHWUhD0U5anwpFFsc1O3apnHLyOh922m1mLtHVR5z0v7ZSNN EF82rAAT5JupyQDil/YMR0W3U5VyTbZDyCczcJGVO/V7Yu8MP966ozkwuIIEb6NQmWCt vcow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EtSwTnjb; 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 k194si2352333qke.63.2020.04.10.18.05.01; Fri, 10 Apr 2020 18:05:16 -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=fail header.i=@gmail.com header.s=20161025 header.b=EtSwTnjb; 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 S1726832AbgDKBDp (ORCPT + 99 others); Fri, 10 Apr 2020 21:03:45 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33313 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgDKBDp (ORCPT ); Fri, 10 Apr 2020 21:03:45 -0400 Received: by mail-qt1-f194.google.com with SMTP id x2so2885666qtr.0; Fri, 10 Apr 2020 18:03:45 -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=VXcaUuCkQA9gomy0iPBx4UPJzC3ZDlPjCnEVyPOFA3o=; b=EtSwTnjbcsUfIJlKvLBHj4S058hpEWb2V77G0Te1Zw/jLMpcUFnS/R/36H5VBiwyWd uOgoZ37fJ2CMAKXkkfPVcmpw8FZLLSxZCV3eW8dBgRzURSKk+PTQwjBF9o+2xpmxRcAP BVlslzzLlBYn4iRXPaL/o1ftRWPm10QTnKRgR/27o+7Phqb5V8Bz3hIZ78rh/gFjRE1R WayeUQc+0FDUUYEwHBegeO+Nv/e7w1JXrvgyfutFNXQ/C/4hpZCiGy1WDT1vlCWChaL4 2umgrv1jYJ6tqeGOej5rTxxJcgfoHiOSgPm3ZQMgoS/R93SKvoNvJoNWTKWjKT/wKReC O+9g== 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=VXcaUuCkQA9gomy0iPBx4UPJzC3ZDlPjCnEVyPOFA3o=; b=NokYYIQvoRD9bV+vgSZXWGVKwGef/Kdx6R7/Jvy5PTsMX9rBvKWIi9Btshf8Y/3VtF QbnKhrHslkpXkoxKamrq3AojuoA6yVJeSBpSR+VbSF8NbN/JANcQzAHZRHAxhNcEhcXr EBqYualiH/7pFRIjmPQvl2nWeu8V2s8wXatN5uDzUAFmcC8CZ28OW/grfhgNZ1tTLe5w qIkYilqL+ECBqkMQZMDDmCLdFZoLT0COeCCoQP3LkwJ7w17GAUqsBKVGUXyQyNosf/d5 505Qn2A/JLlGdi56YP8nbgm3HLFA2oMGJWA0JdkRPSTDBtRqC3R2z6DxwQ0naiHF+X1I zzHQ== X-Gm-Message-State: AGi0PuYN/dlAWur+4bjTTRmexlkxa66jr+idGjSH8EvVOgN3tYZzT8uz TnfwXHv1OPH362+1rL4OtVE= X-Received: by 2002:ac8:2afc:: with SMTP id c57mr1766733qta.324.1586567024512; Fri, 10 Apr 2020 18:03:44 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id d4sm2881198qtc.48.2020.04.10.18.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 18:03:42 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 10 Apr 2020 21:03:40 -0400 To: Ard Biesheuvel Cc: Arvind Sankar , Brian Gerst , linux-efi , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List , Arnd Bergmann , Borislav Petkov , Colin Ian King , Gary Lin , Jiri Slaby , Sergey Shatunov , Takashi Iwai Subject: Re: [PATCH 3/9] efi/x86: Move efi stub globals from .bss to .data Message-ID: <20200411010340.GA1612878@rani.riverdale.lan> References: <20200409130434.6736-1-ardb@kernel.org> <20200409130434.6736-4-ardb@kernel.org> <20200409210847.GA1312580@rani.riverdale.lan> <20200410151612.GA970420@rani.riverdale.lan> <20200410180123.GA1155098@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 08:03:15PM +0200, Ard Biesheuvel wrote: > > > > > > We'll still need .data.efistub for the .data pieces, but that is a > > > separate issue. > > > > You can avoid that by using an archive specification like above. i.e. > > adding > > drivers/firmware/efi/libstub/lib.a:(.data .data.*) > > to the .init.data output section will pull in just the .data input > > sections from the EFI stub into the .init.data section. > > Sure. But the ARM decompressor linker script currently discards .data > before this point in the linker script, and relies on this as a safety > net to ensure that no new .data items get added to the decompressor > binary (which runs after the stub) You should be able to use EXCLUDE_FILE to skip discarding the .data section from libstub. That also supports the archive: syntax according to the docs though I haven't tried it.