rust-osdev/bootimage

debug sections stripped

Opened this issue · 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.

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

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).

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.