rust-osdev / bootimage

Tool to create bootable disk images from a Rust OS kernel.
Apache License 2.0
765 stars 67 forks source link

debug sections stripped #68

Open pitust opened 4 years ago

pitust commented 4 years ago

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 4 years ago

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

pitust commented 4 years ago

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 4 years ago

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.