]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
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)
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]

index ad7f966f0ee5564d08fd338f5deabb9e64f55f80..d20e5e94e4929e0edc9416b2262a54b6362b3392 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <xen/cache.h>
 #include <xen/lib.h>
+#include <xen/xen.lds.h>
 #include <asm/page.h>
 #undef ENTRY
 #undef ALIGN
index 6926e88e54f6885906ce2cdddbd0ff2e872ae991..1fcd8ab7c54aef662d92175eee7aecf72ff47d92 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <xen/cache.h>
 #include <xen/lib.h>
+#include <xen/xen.lds.h>
 #include <asm/page.h>
 #undef ENTRY
 #undef ALIGN
diff --git a/xen/include/xen/xen.lds.h b/xen/include/xen/xen.lds.h
new file mode 100644 (file)
index 0000000..dd292fa
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef __XEN_LDS_H__
+#define __XEN_LDS_H__
+
+/*
+ * Common macros to be used in architecture specific linker scripts.
+ */
+
+#endif /* __XEN_LDS_H__ */