xen: Introduce a header to store common linker scripts content
authorMichal Orzel <michal.orzel@arm.com>
Mon, 11 Apr 2022 07:02:59 +0000 (09:02 +0200)
committerJulien Grall <jgrall@amazon.com>
Mon, 11 Apr 2022 10:26:06 +0000 (11:26 +0100)
commit6af59c45a44a013c42e6e9d45d73c7edadb4e531
treec96b4caad3c3cb6fe98bdd4b40c82aaf6fe9815b
parent8847ec08fd0eecbe3da944fdd49ca3d755e8a9bf
xen: Introduce a header to store common linker scripts content

Both x86 and arm linker scripts share quite a lot of common content.
It is difficult to keep syncing them up, thus introduce a new header
in include/xen called xen.lds.h to store the internals mutual to all
the linker scripts.

Include this header in linker scripts for x86 and arm.
This patch serves as an intermediate step before populating xen.lds.h
and making use of its content in the linker scripts later on.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S
xen/include/xen/xen.lds.h [new file with mode: 0644]