x86/linker: add a reloc section to ELF linker script
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 27 Jun 2019 09:33:33 +0000 (11:33 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jun 2019 17:50:41 +0000 (18:50 +0100)
commit597c57becbeba21ff9f0c078ba2e32973d09d258
tree509171a9cbad2448db4774a8e4137d630d2bfd99
parent583c9fce71a5c9156a67738819a77ea9c95ca8a5
x86/linker: add a reloc section to ELF linker script

if the hypervisor has been built with EFI support (ie: multiboot2).
This allows to position the .reloc section correctly in the output
binary.

Note that for the ELF output format the .reloc section is moved before
.bss because the data it contains is read-only, so it belongs with the
other sections containing read-only data.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xen.lds.S