I am looking to create an ELF core dump file.
I have a RAM dump from my program, and can also get case information, etc.
With this data, I would like to create an ELF core dump file similar to those generated by the Linux kernel when the program crashes, the goal will be to analyze this core dump using GDB, specially created for my platform.
I was looking for kernel dump specifications or a detailed format, but could not find what I wanted:
- In which sections do you need the main dump file?
- How are they organized in an ELF container?
- How do I switch from a binary RAM dump (+ value registers) to a kernel dump file.
This should be done in C, I thought I could use the libelf library to help me create the file, but I did not find the relevant information about what to put in this file and in what format, so any key, link or tip welcome.
Note. This is not about creating exceptions and doing kernel work for me, I can do it, but I really need to collect RAM and manually register the data in the elf core dump.
Thanks!
source share