bootimage icon indicating copy to clipboard operation
bootimage copied to clipboard

debug sections stripped

Open pitust opened this issue 4 years ago • 3 comments

The debug sections (eg. debug_line) are stripped even in debug builds, even though kernels might want to use that for things like line numbers.

pitust avatar Nov 01 '20 17:11 pitust

Could you clarify what you're trying to do? Parse the kernel ELF executable from within the loaded kernel?

phil-opp avatar Nov 01 '20 19:11 phil-opp

Yes, indeed. I tweaked the bootloader to give me the entire kernel ELF. Now i am trying to parse it for line numbers (using xmas_elf and gimli).

pitust avatar Nov 06 '20 15:11 pitust

Interesting! I guess we could add a configuration option to not strip the ELF executable. I will keep this in mind for the rewrite I'm currently working on.

phil-opp avatar Nov 07 '20 12:11 phil-opp