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

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


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 22 Jul 2021 11:20:38 +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=xy9KziwkBTqPBmE/2n9qVyAw/l4nb41AiNBoPr8h9Mo=; b=ksj54kNA8Ov7kyaFxrsq6kZcGxNDIdp8s08y3Ymhx9G2VkjCzhaOpQjN73wN0+Hb4c/5n2CJS4R99mpzO4hzU79Rki5xLDj0iy/LHA4Kuz/umYsz03tF5rM8RNZqJWeIDFDIPYsAkVtBQHVMxwYgpgm6NImU0O7cfyey5tDDh6H4+7i2yIc/YkqCpC4jMXg3aECYJMTQr/OtzQahEdans71uAzSYMVTI1mxxGd6PeOEozaQTVH90YzLzr82q0oSf19TznE6kbwig5tGbff6ypiboB90LkGFTUh8s3900iondLR98DKtH7ndjSRH/yQLJouxrmUA1TA0Yj27dIRnM0Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eUwyRhRj1NVrUsWgB/CaE7bT5brRE0sL/4DQMtB99N7B70i6DDchSLLGmtn0SXQwrYinGl68LF0XU02iBo1aBUVwlvxJwOeVYHh2lt06NEcVC53pdf4CNnQgO6CrpLUwjdRxVNaXZ98FrReMJzzu62N0Z6azIPAfmVBPXUrTIJmXiW5Wp2nXA4x1cE6ZFJZGtZJEGj5xwsNqu1VwlmaxH6DjCRJj0ZWZRS33gaGNkKc8XLtFW96+N6UnZky81/xqp4NP5b9thdRHG7CB29NUTWV0OpiJgEcYX2ILGJgPE0VQ7kgCTPcjrnoDqPASrOVUeigX9NYYUl0Nn3yO0Ly1hw==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 22 Jul 2021 09:20:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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.

Quoting all section names passed to ADDR() via DECL_SECTION() works
around the regression.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -18,7 +18,7 @@ ENTRY(efi_start)
 #else /* !EFI */
 
 #define FORMAT "elf64-x86-64"
-#define DECL_SECTION(x) x : AT(ADDR(x) - __XEN_VIRT_START)
+#define DECL_SECTION(x) x : AT(ADDR(#x) - __XEN_VIRT_START)
 
 ENTRY(start_pa)
 




 


Rackspace

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