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

Re: [PATCH v3 1/2] xen/build: put image header into a separate section


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 8 Mar 2022 15:18:37 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=9dYHZzCskPECZ/u0jzKSWYdh4cwF3TIK6L8gW9zN508=; b=d1QX9xd7OAL0C9xJfl66m4kO8L8VQdsFIgGwPcobtzx4g3k46dqoLk/cZ5HLXWvZLkWWfVAhI4od6CzWxzQ+HzH8DH2QA46HELr8re/ikZs1LCN0uIRxWYV5RbEjAHOi/2822PmhI6/d/iIkGqPD9jAl+9aKUFUUMToPF+9zjY8bFI3/1ip5sKquTlGzgqLIKYZ+pqF7o0zbVnqPl8tWbRVn3IAUaz13NpBhSy4YSg+8K9Nhe9uC4z13ewxkpuhA0/0VXbUaCXC1D00FegtQccyOzieG9fVV0sqQO1XSXw0vgbPLCzCkvUsdsbrtKoxcpjE8tMMa0hQWtk2OSokgAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HHMncs3J3JjR9pVKyXDrXTEa4tqBuwZ1lOiX3mLmZY4XzPm+/XYgd5yXVbs6kM2BaJGLe52W8YIzNtRZKa6/1FOk9+XRjuOI1zuhO1igFI9CwlTwlW5wcKAzWmO/JfiEw3x4bEvz6zWO6MkjmfH+9KXIMJ0peiptuEb114VgwMUbcnwUILTaaHIqX6dEBuvSsLFRlaJmBJZLUGoZDUMEYOflMFEgiCgDvcqUrne6ph4MH/eRuB08uIwjCABz0WJcxG6WdVpWrfeEREdMVk6tcDLmNk+lVoAZHUyeoAQSy+AF0t3xZ4W/Uh69AvX0jvNs6HXFJEO6bhXSr1ITkpHzuA==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 08 Mar 2022 14:18:54 +0000
  • Ironport-data: A9a23:nOUswq3fKKG3M8OWpPbD5Sdxkn2cJEfYwER7XKvMYLTBsI5bpzQCm zEcW2DTPK2Oa2OgKItyPISw/EpS7cOEyIdqQApppC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkjk7xdOCn9xGQ7InQLlbGILes1htZGEk1EE/NtTo5w7Rj2tUw0YDja++wk YiaT/P3aQfNNwFcagr424rbwP+4lK2v0N+wlgVWicFj5DcypVFMZH4sDfjZw0/DaptVBoaHq 9Prl9lVyI97EyAFUbtJmp6jGqEDryW70QKm0hK6UID66vROS7BbPg/W+5PwZG8O4whlkeydx /0KsN+taS04IZfhwr1eDQt9KT0vN6h/reqvzXiX6aR/zmXDenrohf5vEFs3LcsT/eMf7WNmr KJCbmpXN1ba2rzwkOnTpupE36zPKOHxO4wSoDd4xCzxBvc6W5HTBa7N4Le02R9u1pgTTKuEO aL1bxIxUQjpaRtABm4rEaI9sryqjFjDaBlx/Qf9Sa0fvDGIkV0ZPKLWGOTSftuGVMBEhHGyr 2jN/3n6KhwCPdnZwj2AmlqzgsffkCW9X5gdfJWo+/gvjFCNy2g7DBwNSUD9sfS/klS5Wd9UN woT4CVGhaI/7lCxR9/xGRixumeZvwU0UsBVVeY97WmlyKDZ/gKYDWgsVSNaZZots8pebScxy laDktftBDpumL6YU3SQ8vGTtzzaESoIKW4PYwcUQA1D5MPsyLzflTqWEIwlSvTsyISoR3egm FhmsRTSmZ1UiI0W94+q4mrq2Wvv+IrsdBJk7ADuCzfNAhxCWKapYImh6F7+5PlGLZqEQlTpg EXoi/Ry/8hVU8jTyXXlrPElWejwuq3baGG0bUtHQsF5nwlB7UJPamy5DNtWAE5yevgJdjbyC KM4kVMAvcQDVJdGgEIeXm5QNyjI5fW4fTgGfqqNBjarXnSXXFXflM2JTRTMt10BaGB2zckC1 W6zKK5A90oyB6V91yaRTOwAy7ItzS1W7TqNGc6lkET6iuPOOSX9pVI53L2mNLtRAESs+lm9z jqiH5HSl0U3vBPWOEE7DrL/3XhVdCNmVPgaWuRcd/KZIxoOJY3SI6S5/F/VQKQ8x/49vr6Rp hmVAxYEoHKi1SyvAVjbMRhLNeKwNauTWFpmZETAy37zgCN9CWtuhY9CH6YKkU4PqLQznaQqH qNeJ61twJ1nE1z6xtjUVrGkxKRKfxW3nwOeeS2jZTk0ZZl7QALVvNTje2PSGOMmVUJbaeNWT 2Wc6z7m
  • Ironport-hdrordr: A9a23:MFHjH6MXxgsY5sBcTv+jsMiBIKoaSvp037BN7TEXdfU1SL39qy nApoV46faZslYssRIb+OxoWpPwJ080nKQdieN9UYtKNDOWwVdAR7sSiLcKrQeQeBEW39QtrZ uJLMNFY+EYd2IVsS9R2njCLz9a+ra6zJw=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, Mar 08, 2022 at 02:57:23PM +0100, Jan Beulich wrote:
> On 08.03.2022 14:49, Roger Pau Monne wrote:
> > So it can be explicitly placed ahead of the rest of the .text content
> > in the linker script (and thus the resulting image). This is a
> > prerequisite for further work that will add a catch-all to the text
> > section (.text.*).
> > 
> > Note that placement of the sections inside of .text is also slightly
> > adjusted to be more similar to the position found in the default GNU
> > ld linker script.
> > 
> > The special handling of the object file containing the header data as
> > the first object file passed to the linker command line can also be
> > removed.
> > 
> > While there also remove the special handling of efi/ on x86. There's
> > no need for the resulting object file to be passed in any special
> > order to the linker.
> > 
> > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> 
> Looks good to me, but I have one question before feeling ready to
> offer R-b:
> 
> > @@ -86,8 +84,13 @@ SECTIONS
> >         *(.text.kexec)          /* Page aligned in the object file. */
> >         kexec_reloc_end = .;
> >  
> > -       *(.text.cold)
> > -       *(.text.unlikely)
> > +       *(.text.cold .text.cold.*)
> > +       *(.text.unlikely .text.*_unlikely .text.unlikely.*)
> 
> What generates .text.*_unlikely? And if anything really does, why
> would .text.cold not have a similar equivalent?

That matches what I saw in the default linker script from my version
of GNU ld:

    *(.text.unlikely .text.*_unlikely .text.unlikely.*)

I really don't know what could generate .text.*_unlikely, but since
it's part of the default linker script I assumed it was better to just
add it.

Thanks, Roger.



 


Rackspace

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