summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch')
-rw-r--r--recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch b/recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch
new file mode 100644
index 00000000..f5108be8
--- /dev/null
+++ b/recipes-extended/xen/files/0001-x86-work-around-build-issue-with-GNU-ld-2.37.patch
@@ -0,0 +1,36 @@
1From 58ad654ebce7ccb272a3f4f3482c03aaad850d31 Mon Sep 17 00:00:00 2001
2From: Jan Beulich <jbeulich@suse.com>
3Date: Thu, 22 Jul 2021 11:20:38 +0200
4Subject: [PATCH] x86: work around build issue with GNU ld 2.37
5
6I suspect it is commit 40726f16a8d7 ("ld script expression parsing")
7which broke the hypervisor build, by no longer accepting section names
8with a dash in them inside ADDR() (and perhaps other script directives
9expecting just a section name, not an expression): .note.gnu.build-id
10is such a section.
11
12Quoting all section names passed to ADDR() via DECL_SECTION() works
13around the regression.
14
15Signed-off-by: Jan Beulich <jbeulich@suse.com>
16Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
17---
18 xen/arch/x86/xen.lds.S | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
22index 9c6c1c8005..955d5cf4a0 100644
23--- a/xen/arch/x86/xen.lds.S
24+++ b/xen/arch/x86/xen.lds.S
25@@ -18,7 +18,7 @@ ENTRY(efi_start)
26 #else /* !EFI */
27
28 #define FORMAT "elf64-x86-64"
29-#define DECL_SECTION(x) x : AT(ADDR(x) - __XEN_VIRT_START)
30+#define DECL_SECTION(x) x : AT(ADDR(#x) - __XEN_VIRT_START)
31
32 ENTRY(start_pa)
33
34--
352.25.1
36