At what offset does grub load the elf file?
At what offset does grub load the elf file?
I would like to read the debug sections from my kernel elf file and therefore need to know at what memory address grub loads the elf file so I can add it to the sections' offset. Is there a way to find out at what address the entire elf file was loaded?
Re: At what offset does grub load the elf file?
Grub does not load the entire ELF.
You need to make sure your debug sections are marked for loading when you link your ELF and possibly add some symbols around them so you can find out where they are.
You need to make sure your debug sections are marked for loading when you link your ELF and possibly add some symbols around them so you can find out where they are.
Re: At what offset does grub load the elf file?
How would I do so?klange wrote:You need to make sure your debug sections are marked for loading when you link your ELF
I tried that but ran into this issue.klange wrote:and possibly add some symbols around them so you can find out where they are.