[PATCH 0/8] arm64 kexec kernel patches V6

Anurup m anurup.m at huawei.com
Tue Dec 2 05:39:06 PST 2014


Hi Geoff,

	The patch solved the issue reported.

Thanks and Regards
Anurup M

-----Original Message-----
From: Geoff Levand [mailto:geoff at infradead.org] 
Sent: Friday, November 21, 2014 5:01 AM
To: Anurup m
Cc: kexec at lists.infradead.org; Sanil kumar
Subject: Re: [PATCH 0/8] arm64 kexec kernel patches V6

> 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