Fix the feature determining ELF32/ELF64 automatically
Subsystems (2)
PATCH 1/1 Fix the feature determining ELF32/ELF64 automatically
Hi,
This patch fixes the problem that the kexec command cannot determine ELF32/ELF64 automatically.
On i386 system, the kexec command always determined an ELF32 /proc/vmcore even if the memory is 4GB or larger, because of referring the outside of the array "range[]".
Thanks
Ken'ichi Ohmichi
Signed-off-by Ken'ichi Ohmichi <[email protected]>
---
kexec/arch/i386/crashdump-x86.c +1 -1
@@ -496,7 +496,7 @@ static enum coretype get_core_type(strucif (ranges ==0 )return CORE_TYPE_ELF64 ; -if (range[ranges].end >0xFFFFFFFFUL ) +if (range[ranges -1 ].end >0xFFFFFFFFUL )return CORE_TYPE_ELF64 ;else return CORE_TYPE_ELF32 ;
_
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec