Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug sections stripped #68

Open
Tracked by #130
pitust opened this issue Nov 1, 2020 · 3 comments
Open
Tracked by #130

debug sections stripped #68

pitust opened this issue Nov 1, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@pitust
Copy link

pitust commented Nov 1, 2020

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
Copy link
Member

phil-opp commented Nov 1, 2020

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

@pitust
Copy link
Author

pitust commented Nov 6, 2020

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 phil-opp added the enhancement New feature or request label Nov 7, 2020
@phil-opp
Copy link
Member

phil-opp commented Nov 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants