[PATCH 0/8] arm64 kexec kernel patches V6

Geoff Levand geoff at infradead.org
Thu Nov 20 15:31:15 PST 2014


> On Tue, 2014-11-18 at 11:48 +0530, Anurup M wrote:
> > 	I get a relocation error  when I try to load using latest kexec-tools from https://git.linaro.org/people/geoff.levand/kexec-tools.git.

Please build with the patch below and let me know the
result.

-Geoff

diff --git a/purgatory/purgatory.c b/purgatory/purgatory.c
index 3bbcc09..faee277 100644
--- a/purgatory/purgatory.c
+++ b/purgatory/purgatory.c
@@ -6,8 +6,9 @@
 #include <string.h>
 #include "../kexec/kexec-sha256.h"
 
-struct sha256_region sha256_regions[SHA256_REGIONS] = {};
-sha256_digest_t sha256_digest = { };
+struct sha256_region __attribute__ ((section (".data")))
+	sha256_regions[SHA256_REGIONS] = {};
+sha256_digest_t __attribute__ ((section (".data"))) sha256_digest = {};
 
 int verify_sha256_digest(void)
 {





More information about the kexec mailing list