summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2007-02-14 12:51:32 +0900
committerSimon Horman <horms@verge.net.au>2007-02-14 12:51:32 +0900
commit40f4b56e54c3e42ef32189682a85bcdc1bf240f1 (patch)
tree356fee5f2b02ab7bbcd698e1cc58683a4e7f8a5e
parenta62dba3262250b650abc84b42d7f95521b69a1c8 (diff)
Kexec-tools: Fix physcal address value in vmcore ELF segment header
I used fixed 64M as physical offset in vmcore ELF segment header. This gives trouble to crash utility to analyze vmcore on platform that load kernel to a different address. This patch will fix it. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> This is the second time this patch has been applied, it seems to have been inadvertantly reverted as part of the crash_create_elf64_headers() patch, f038d30bff8510a1df1e72af08db1766581d1f2c. Cc: Jay Lan <jlan@sgi.com> Cc: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ia64/crashdump-ia64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c
index ad0cdb3..35f7a72 100644
--- a/kexec/arch/ia64/crashdump-ia64.c
+++ b/kexec/arch/ia64/crashdump-ia64.c
@@ -29,7 +29,8 @@
#include "../kexec/crashdump.h"
int memory_ranges = 0;
-#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL)
+#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL - \
+ kernel_code_start)
static struct crash_elf_info elf_info =
{