xen/build: put image header into a separate section
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 9 Mar 2022 12:28:45 +0000 (13:28 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Mar 2022 18:47:55 +0000 (18:47 +0000)
commit4267a33b19d43c988fd4535093c426aa2aec70a1
treee18c9193d948e53042869e8f293d813e60a291d2
parent7f5b2448bd724f5f24426b2595a9bdceb1e5a346
xen/build: put image header into a separate section

So it can be explicitly placed ahead of the rest of the .text content
in the linker script (and thus the resulting image). This is a
prerequisite for further work that will add a catch-all to the text
section (.text.*).

Note that placement of the sections inside of .text is also slightly
adjusted to be more similar to the position found in the default GNU
ld linker script.

The special handling of the object file containing the header data as
the first object file passed to the linker command line can also be
removed.

While there also remove the special handling of efi/ on x86. There's
no need for the resulting object file to be passed in any special
order to the linker.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/arch.mk
xen/arch/arm/arm32/Makefile
xen/arch/arm/arm32/head.S
xen/arch/arm/arm64/Makefile
xen/arch/arm/arm64/head.S
xen/arch/arm/xen.lds.S
xen/arch/x86/Makefile
xen/arch/x86/arch.mk
xen/arch/x86/boot/head.S
xen/arch/x86/xen.lds.S