[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] EFI: strip xen.efi when putting it on the EFI partition


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 5 Jul 2022 18:03:39 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Te3OjBPPCuEBN9Gih20oWOXZs8YlVys00XqJtm5VLUg=; b=T2avtRx2i5XUmz/jNC4s0jmbdFBinYRDdZS0kISoH9OhBM8+v0Leaz0JkEQ6I+cPDMKrRhVXmoOfxloc35krf1FGQU2wk9OkOMWUDTx72FyiXh6n+r2CsebO3kWmnZMnXwc7p34lwaFH7NoULBnPC6yS930rWij8+4HzZaD9P1ZdFvMEnyQwDovFP+PWmK0BnFppPb/N1DIPhVwgcY23bPwVJCSpvR++PDL0TFfjNqiX269oAy7X1WH3WvwCWdrj6cJvnJ6D2oPuhUuoQjj2BG0ba9AzvjGBNFtVTnN61ksRgX1B0wJPm/7iEi861qahrNlVje/nuAbBywmA1QmbAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XpNuZtte6025YRrJe5T74vtSpwW2CJx6qOq4C8j6Ca2qs05vPXakjY1L47yDChzk0oJsgwsTTpcqgDrXfmKyIfZQwdgYwxmFW1IdfXiZScq1k9BiasPWuNWjaadmYJXBLBA9kM+JDJ1w8ySPoEiT58WXwQ8h+eGM8WnpmRLhomw6eD+CDlMsOND6ZdfDGIVWxtdwtrHXDdH7x8f6l+7kKEo/c3Qz4HWbXn7SJds/vh9kLskxgQQUBjBDRIN3nTNkX8DPvBi+xlxb0OBGpmsqYMa/7XmWhKxBqcySEvmLkxcVMmNjiK3nRlGbe0FRcXR0vI6hXmIrJ0y0VlRDaRAXQw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 05 Jul 2022 16:03:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09.06.2022 17:52, Jan Beulich wrote:
> With debug info retained, xen.efi can be quite large. Unlike for xen.gz
> there's no intermediate step (mkelf32 there) involved which would strip
> debug info kind of as a side effect. While the installing of xen.efi on
> the EFI partition is an optional step (intended to be a courtesy to the
> developer), adjust it also for the purpose of documenting what distros
> would be expected to do during boot loader configuration (which is what
> would normally put xen.efi into the EFI partition).
> 
> Model the control over stripping after Linux'es module installation,
> except that the stripped executable is constructed in the build area
> instead of in the destination location. This is to conserve on space
> used there - EFI partitions tend to be only a few hundred Mb in size.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> GNU strip 2.38 appears to have issues when acting on a PE binary:
> - file name symbols are also stripped; while there is a separate
>   --keep-file-symbols option (which I would have thought to be on by
>   default anyway), its use so far makes no difference,
> - the string table grows in size, when one would expect it to retain its
>   size (or shrink),
> - linker version is changed in and timestamp zapped from the header.
> Older GNU strip (observed with 2.35.1) doesn't work at all ("Data
> Directory size (1c) exceeds space left in section (8)").
> 
> Future GNU strip is going to honor --keep-file-symbols (and will also
> have the other issues fixed). Question is whether we should use that
> option (for the symbol table as a whole to make sense), or whether
> instead we should (by default) strip the symbol table as well.

Without any feedback / ack I guess I'll consider this of no interest
(despite having heard otherwise, triggering me to put together the
patch in the first place), and put on the pile of effectively
rejected patches.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.