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

Re: [PATCH] x86: work around build issue with GNU ld 2.37

  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 10 Aug 2021 10:50:32 +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-SenderADCheck; bh=cX/OdxhS05KxFemItL4i8M3ZAAsY9eNexcSZe8RO6a8=; b=QdM2/BjJQZyjRKq4fh9JioVa5I1a4HjV4CjecQghOtoPjdIjtCFmfMCZOS3gm9V1DM2f3fmPOVRjBCaCpAL7LuOK28W2iHZXmi83b6Khu9UtVNiaLf6kq8DZUaAXVDMt/lWnJfccoFrzAYWqt58G3npq8jhiWBQOI+5Pe6ws1IL4ELE1PvTohAbowLiT9PghmEcNFPbLe6EEELK+new8PbcX27pL3JL8D6r13gA3hKxQGq3GMZy0/q92FCL38Hf0Czu8/AXR/yrvic2gyFocm129oN9L/C8F2BG/JmpPBoXsabKwOK7wBJLsYNZGmtCuo4JgEBev9Hu9S5FtSK75mg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V0meJsFzscdbhDu/Z8FZo0geykCh0uBgUaITgeElcGuVZBR7Y5vrXGEjZ27iz545/wUK5KkevyXKSKmYvkIlaG3RK2duEKDnSliCwOUiOuZv7Vt/FIG5kpEP6e5byJFMBZdvEB5xLiTMsw6RDXUqcxNpFYaJacphOhUvblF6hvx/92X+S75ldhm7WPepSbFzz7sTJofIbBvpugOX2bTNQPTvV1Ix9esdnEkcQCdBHIWt/A6wGFERKnglWXx1AQxWl+31V69Ka8cU5puu15AEaLBDmHCZOrmo2XBYbBulmAeFFRxCWFqZhthlF3c4LHSl17wG06ivL53axMnUkXXq+Q==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 10 Aug 2021 08:50:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10.08.2021 10:33, Andrew Cooper wrote:
> On 03/08/2021 07:37, Jan Beulich wrote:
>> On 27.07.2021 14:33, Andrew Cooper wrote:
>>> On 22/07/2021 10:20, Jan Beulich wrote:
>>>> I suspect it is commit 40726f16a8d7 ("ld script expression parsing")
>>>> which broke the hypervisor build, by no longer accepting section names
>>>> with a dash in them inside ADDR() (and perhaps other script directives
>>>> expecting just a section name, not an expression): .note.gnu.build-id
>>>> is such a section.
>>> Are binutils going to fix their testing to reduce the number of serious
>>> regressions they're releasing?
>> To be honest - I simply don't know.
>>>> Quoting all section names passed to ADDR() via DECL_SECTION() works
>>>> around the regression.
>>>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>>> I guess we've got no choice.  Acked-by: Andrew Cooper
>>> <andrew.cooper3@xxxxxxxxxx>
>> Thanks. I see you've committed this already.
> Actually, it unilaterally breaks FreeBSD builds: 
> https://cirrus-ci.com/task/5417332467040256
> I'm not sure why my build tests didn't notice, but obviously this patch
> isn't a workable option.

I'm confused: Is the tool called "ld" there something that's not only not
GNU ld, but not even compatible with GNU ld? (Iirc clang's linker is named
differently. Or maybe that's just on Linux? In any event I've just checked
with clang5 [on Linux], and the build worked fine there. But this looks to
be using GNU ld irrespective of the compiler choice, and I also don't seem
to have anything named "llvm-ld" on that system, despite there being a lot
of other "llvm-*".)




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