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>
#include <xen/cache.h>
#include <xen/lib.h>
+#include <xen/xen.lds.h>
#include <asm/page.h>
#undef ENTRY
#undef ALIGN
#include <xen/cache.h>
#include <xen/lib.h>
+#include <xen/xen.lds.h>
#include <asm/page.h>
#undef ENTRY
#undef ALIGN
--- /dev/null
+#ifndef __XEN_LDS_H__
+#define __XEN_LDS_H__
+
+/*
+ * Common macros to be used in architecture specific linker scripts.
+ */
+
+#endif /* __XEN_LDS_H__ */