Skip to contentSkip to conversation

Kexec-tools: Fix physcal address value in vmcore ELF

PATCH New Zou Nan hai 1 participant 1 message Sep 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kexec-tools: Fix physcal address value in vmcore ELF

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.

kexec/arch/ia64/crashdump-ia64.c +1 -1
diff -Nraup kexec-tools-1.101/kexec/arch/ia64/crashdump-ia64.c kexec-tools-1.101-fix/kexec/arch/ia64/crashdump-ia64.c
@@ -28,7 +28,7 @@
 #include "crashdump-ia64.h"
 
 int memory_ranges = 0;
-#define LOAD_OFFSET 	(0xa000000000000000UL + 0x100000000UL - (1UL<<26))
+#define LOAD_OFFSET 	(0xa000000000000000UL + 0x100000000UL - kernel_code_start)
 #define MAX_LINE        160
 /* Stores a sorted list of RAM memory ranges for which to create elf headers.
  * A separate program header is created for backup region */