[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 17:36:32 +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=q2epvDYDmvwwx2rWMia+8CgjnbWJoTuQTzI7d4mYO1g=; b=gKBkz7KXovjwaZi+8JU+gQPrlzNNf7gt5hNqTi2Je2QlSc18QeGe0zPqn/TDkVPms628Tihw9eaKf8qUvi6s6I7c4500OcCe23bKyi8Lu1oc+bznX5DIIEerW/icpaJL9hTG96kJ9elYOWSVTFWOhg6ZRq4q7bnqmGIE7iiUSiPpBd8UkCL/GB18J9TgNNBaMvtJOk3O3B9PKklqzcf2oGuvdhZYznb2yF9RF/QD6bDC1gxXq6ZfmCzAhg0t8yCJ5529x95n+Nmuw+IZ4FPae9lpNw5KMpfg27TrQ8HoQI+2rlt9ujIkNnI1c2zzB47V4f+RhSq3d33gionHU/L0fQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=it5xyaM7s4yPDITE+mVH+PpsgpbSNSe1cMl07qBem0EvDubJwA7eWfOuUYuCp8NKN9hTDURHkWctpnTwoP5jtgcsQHSHWD81QbA4oKOJBzhr03XPq5mItgNoVX3sSKN05FnIqwBJPBpjvmaZuAXssVBa0W9o8IdWmcSgVYGnQw9TgKBgSoAP2gjTby0rsKo9+ulsgPHCkxK36DFNlWp5zIZ1wZQgUhSAMj3XbnSG4O53Jdb/zyiYotQ//1ptTC47DQ+KbTyhQ2gmcMVG1UoBrHduDj85aRY9S21lr65rjwyDB0usC8ikQTpol9EeKtCgtG6g7AnaRUaIK/SdIiFxEQ==
  • Authentication-results: esa2.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 16:36:54 +0000
  • Ironport-data: A9a23:pJogk6hmO/45N0T3wn/kkTKdX161lBAKZh0ujC45NGQN5FlHY01je htvXT2COfeJMDD8ft93bY21/EtSsZeGyIc2TAVkqCA3RH4b9cadCdqndUqhZCn6wu8v7a5EA 2fyTvGacajYm1eF/k/F3oDJ9CU6jefSLlbFILas1hpZHGeIcw98z0M78wIFqtQw24LhWFvd4 YmaT/D3YzdJ5RYlagr41IrbwP9flKyaVOQw5wFWiVhj5TcyplFNZH4tDfjZw0jQG+G4KtWSV efbpIxVy0uCl/sb5nFJpZ6gGqECaua60QFjERO6UYD66vRJjnRaPqrWqJPwwKqY4tmEt4kZ9 TlDiXC/YQVwNa6SqLgjaEZZHi96YP1F6Z/jeUHq5KR/z2WeG5ft6/BnDUVwNowE4OdnR2pJ8 JT0KhhUMErF3bjvhuvmFK883azPL+GyVG8bkmtnwjzDS+4vXLjIQrnQ5M8e1zA17ixLNaiDO JFAN2IzBPjGSyVfIU44NZtkoKDyjFnGUCdep2uHh7VitgA/yyQuieOwYbI5YOeie8JRmUqJo 3PcyE7wCBoaKd+3xCKM9zSngeqntTz/cJIfEvu/7PECqE2ewCkfBQMbUXO/oOKlkQiuVt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QN/L/AEqZNScxPf5UZllsp7yr h302WQsIcSJQ/cnQzmjuK4GC1Cpw6Rmz4PgOQTh3tQXc81c7lKt7ES+0tTDdMpAD/60oY6C+ NjZfusqMq+SWnqLkwxg1MfgOBFBh8Ib1S7qwk5y4GoOgFt7T5EJxBy/r1cop8CnKhNP6Wsqd 60d5iAr4s+PfP+XZgNdNvpfvHHeFAlYSi8Rl56cm6XXZ3uBRr22uvKCfMOlaWXRKA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, Mar 08, 2022 at 04:08:53PM +0100, Jan Beulich wrote:
> On 08.03.2022 15:18, Roger Pau Monné wrote:
> > 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.
> 
> I've checked - gcc up to 4.5.x would generate .text.*_unlikely; from
> 4.6.x. onwards it would be .text.unlikely.*.
> 
> As to the dissimilarity with .text.cold: I wonder why we have that in
> the first place. It matches our __cold attribute, just that we don't
> use that anywhere afaics.
> 
> In any event:
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> albeit preferably with .text.cold.* dropped again.

Would you mind dropping the .text.cold.* at commit? Otherwise I can
resend.

Thanks, Roger.



 


Rackspace

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