mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
0cdb4a5802
commit
58ad654ebc
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||