How to get elf information?
Closed this issue · 7 comments
Used to be, i could simply iterate through elf_sections_tag.sections() and get what I wanted, but that is no longer the case. What is the current way to get things like e.g. the elf section size and location for each section?
I guess i should point out my ultimate goal is to get os size (and possibly in the future location)
Hi!
What about https://docs.rs/multiboot2/0.23.0/multiboot2/struct.BootInformation.html#method.elf_sections, isn't this what you need?
I didn't change anything in the API intentionally for that specific part. I might accidentally broke something.
I can look into it next week
Yeah, I can't see any public methods to actually get the data i want out.
Yeah, I can't see any public methods to actually get the data i want out.
Which data do you want to get specifically? Is a537d24 a valid solution for you? Now you can get the tag and use its methods (including the section iterator) by using the getter of BootInformation, just like for all the other tags
i'll check it out this evening. my ultimate goal is to find the location and size of my kernel in memory, and i was hoping to use the elf tags to do so.
groovy, this seems to have done the trick, thanks!