x86: quote section names when defining them in linker script
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 15 Oct 2021 09:16:41 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:16:41 +0000 (11:16 +0200)
commitb4926b6c40bb635788a4987c8176c94826d193bd
treeeb88f9bed8ddfb2fcf3d5b01ca110ae6fd3eeeda
parent410f5d02b6b4878e9fca4b7330380a970facf29b
x86: quote section names when defining them in linker script

LLVM ld seems to require section names to be quoted at both definition
and when referencing them for a match to happen, or else we get the
following errors:

ld: error: xen.lds:45: undefined section ".text"
ld: error: xen.lds:69: undefined section ".rodata"
ld: error: xen.lds:104: undefined section ".note.gnu.build-id"
[...]

The original fix for GNU ld 2.37 only quoted the section name when
referencing it in the ADDR function. Fix by also quoting the section
names when declaring them.

Fixes: 58ad654ebce7 ("x86: work around build issue with GNU ld 2.37")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 6254920587c33bcc7ab884e6c9a11cfc0d5867ab
master date: 2021-09-15 11:02:21 +0200
xen/arch/x86/xen.lds.S