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

Re: [PATCH for-4.22] xen/x86: Always strip xen.efi


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Frediano Ziglio <freddy77@xxxxxxxxx>
  • Date: Tue, 16 Jun 2026 15:41:51 +0100
  • Arc-authentication-results: i=1; mx.google.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=kI5MX0rOS8Inx/kYqgRKPRGZwjeNwSKd66xuuIcZP9w=; fh=NYSOBtamoLuT7+PMml2Q2jk87NGsNwucrssafcE0Kbk=; b=kQ0oyRZkAMs6XGAYoM5Xpky8beNT3s8DQnLQ0qFFOvpiw5ztsUUEDF6ozlgdg50Wv7 8vN11kftY7i+Tnfi0hiv/bZK2DVHwdFLrP1XmV/DULONvO4yEajcTcVDCp01zs5PF/2Q fjQSPAhIA6VT4bQ7N08D3AXxvIE69LkXQvOfnSvcIQ97HfW/N/4tVh9pCRKGwHeED6c0 TnegH3xCn91MBsgt28oA39RW4Ukgpy/RUPl353P2jNzD7xh79ZdUJngKF2acpqpDJ3Ec CTwlZm/be9gU7LWb4TV08LnCI5hpb1Zpj8Ku7sMHk9AWlirculzwLnciCktl0Ku6QIDF CjUQ==; darn=lists.xenproject.org
  • Arc-seal: i=1; a=rsa-sha256; t=1781620923; cv=none; d=google.com; s=arc-20240605; b=QQqFIc9LsNteWLNUNLVl5C0sH1M4w2rgoRBl3se3eE7s2PU4x5MZbiHF4zSsyJ8hga ORpCQ+H9VXfBN8Mz2UOZi6hJCk0mMgimdtcd4KIqPwJxU6uo1Qjveg/qcKaxWUwQ1Bd9 p0NWChnF5/xKmlR9F0ujhtsos5xdqKSn9khZxg0Mn91Q5jok639iRAxcr5HaH2x3+KUB tEGu/uqn47NvkfdXr2MDrsDGOaSZ7C40LGAbQxsew1cEhwqXDfeud/q1aeztIZoLFY7s dd9AH37p3evYNVnkGWiXU9jzS/uZqvGUg2LzEwNX76/zo/n72dEbxwLr7Jdj/QufILsg qzyA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, "Daniel P . Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 16 Jun 2026 14:42:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, 16 Jun 2026 at 15:28, Frediano Ziglio <freddy77@xxxxxxxxx> wrote:
>
> On Tue, 16 Jun 2026 at 15:15, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> >
> > On 16.06.2026 16:07, Frediano Ziglio wrote:
> > > On Thu, 11 Jun 2026 at 15:42, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> > >>
> > >> On 11.06.2026 16:38, Jan Beulich wrote:
> > >>> On 08.06.2026 19:31, Andrew Cooper wrote:
> > >>>> Some old versions of binutils ld managed to produce efi files which the
> > >>>> matching version of strip couldn't process.  This includes Binutils 
> > >>>> 2.26
> > >>>> included in Ubuntu 16.04.  Delete the workaround for this bug, and 
> > >>>> require a
> > >>>> less broken toolchain.
> > >>>
> > >>> And we're certain newer versions of strip don't do any harm to the 
> > >>> binaries?
> > >>> Already towards Frediano's posting I said that having looked at how 
> > >>> things
> > >>> work there, I'm far from certain.
> > >>
> > >> I should have added: An option may be to link twice: Once with debug info
> > >> included, and once with it stripped. Personally I trust the linker 
> > >> creating
> > >> the various headers, including the section ones, more than strip's (or
> > >> objcopy's). Yet then I can only repeat my observation that linking PE+ 
> > >> from
> > >> ELF inputs looks to be significantly slower than linking ELF -> ELF.
> > >
> > > That was also attempted. See previous versions. And no, it does not work.
> >
> > How exactly does it not work? When stripping debug info while linking (as
> > we now do for the first two passes), the resulting image should be both
> > small enough and correct. What am I missing? The only caveat I'm aware of
> > is the Eclair scan, where we should avoid doing any work for the
> > "auxiliary" linking step (the one not producing the binary that's actually
> > going to be used for running Xen).
> >
> > Jan
>
> One thing I remember was the build-id was not the same and debugging
> tools could not work.
>

Another reason was that the generated binary with debug information
was not working with various tools anyway (gdb complained about it and
also binutils again for converting to ELF to use other tools like I
think live patching).
About this I'm less sure about.

Frediano



 


Rackspace

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