diff options
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.patch | 36 |
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 @@ | |||
1 | From 58ad654ebce7ccb272a3f4f3482c03aaad850d31 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jan Beulich <jbeulich@suse.com> | ||
3 | Date: Thu, 22 Jul 2021 11:20:38 +0200 | ||
4 | Subject: [PATCH] x86: work around build issue with GNU ld 2.37 | ||
5 | |||
6 | I suspect it is commit 40726f16a8d7 ("ld script expression parsing") | ||
7 | which broke the hypervisor build, by no longer accepting section names | ||
8 | with a dash in them inside ADDR() (and perhaps other script directives | ||
9 | expecting just a section name, not an expression): .note.gnu.build-id | ||
10 | is such a section. | ||
11 | |||
12 | Quoting all section names passed to ADDR() via DECL_SECTION() works | ||
13 | around the regression. | ||
14 | |||
15 | Signed-off-by: Jan Beulich <jbeulich@suse.com> | ||
16 | Acked-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 | |||
21 | diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S | ||
22 | index 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 | -- | ||
35 | 2.25.1 | ||
36 | |||