debug sections stripped
Opened this issue · 3 comments
pitust commented
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.
phil-opp commented
Could you clarify what you're trying to do? Parse the kernel ELF executable from within the loaded kernel?
pitust commented
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).
phil-opp commented
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.