Query: Kdump: Core Image ELF Format

vivek goyal
2005-03-08T12:50:27Z

Hi,

Kdump (A kexec based crash dumping mechanism) is going to export the
kernel core image in ELF format. ELF was chosen as a format, keeping in
mind that gdb can be used for limited debugging and "Crash" can be used
for advanced debugging.

Core image ELF headers are prepared before crash and stored at a safe
place in memory. These headers are retrieved over a kexec boot and final
elf core image is prepared for analysis.

Given the fact physical memory can be dis-contiguous, One program header
of type PT_LOAD is created for every contiguous memory chunk present in
the system. Other information like register states etc. is captured in
notes section.

Now the issue is, on i386, whether to prepare core headers in ELF32 or
ELF64 format. gdb can not analyze ELF64 core image for i386 system. I
don't know about "crash". Can "crash" support ELF64 core image file for
i386 system?

Given the limitation of analysis tools, if core headers are prepared in
ELF32 format then how to handle PAE systems?

Any thoughts or suggestions on this?

Thanks
Vivek