 +struct arm64_opts arm64_opts;
 +
 +#endif /* KEXEC_ARCH_ARM64_OPTIONS_H */
-diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c
-new file mode 100644
-index 0000000..e02c38d
 --- /dev/null
 +++ b/kexec/arch/arm64/kexec-arm64.c
-@@ -0,0 +1,228 @@
+@@ -0,0 +1,194 @@
 +/*
 + * ARM64 kexec support.
 + */
 +
 +#define _GNU_SOURCE
 +
++#include <dirent.h>
 +#include <errno.h>
 +#include <getopt.h>
++#include <stdio.h>
 +#include <stddef.h>
 +
 +//#include <linux/kexec.h>

+
+int arch_compat_trampoline(struct kexec_info *info)
+{
+	fprintf(stderr, "%s:%d: do\n", __func__, __LINE__);
+	return 0;
+}
+
+
+int machine_verify_elf_rel(struct mem_ehdr *ehdr)
+{
+	(void)ehdr;
+
+	fprintf(stderr, "%s:%d: do\n", __func__, __LINE__);
+	return 0;
+}
+
+void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type,
+	void *location, unsigned long address, unsigned long value)
+{
+	(void)ehdr;
+	(void)r_type;
+	(void)location;
+	(void)address;
+	(void)value;
+	fprintf(stderr, "%s:%d: do\n", __func__, __LINE__);
+}
diff --git a/kexec/arch/arm64/kexec-arm64.h b/kexec/arch/arm64/kexec-arm64.h
new file mode 100644
index 0000000..673d525
--- /dev/null
+++ b/kexec/arch/arm64/kexec-arm64.h
@@ -0,0 +1,28 @@

+arm64_KEXEC_SRCS += $(libfdt_SRCS)
+
+endif
--- /dev/null
+++ b/kexec/arch/arm64/include/arch/options.h
@@ -0,0 +1,30 @@
