From: Jan Beulich Date: Thu, 22 Jul 2021 09:20:38 +0000 (+0200) Subject: x86: work around build issue with GNU ld 2.37 X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~307 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58ad654ebce7ccb272a3f4f3482c03aaad850d31;p=xen.git x86: work around build issue with GNU ld 2.37 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 Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 9c6c1c8005..955d5cf4a0 100644 --- 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)