kitlith / microcorruption-dumper

Liberate yourself from the microcorruption website
Apache License 2.0
10 stars 0 forks source link

Finding the correct section to refrence is currently manual. Fix this. #2

Closed kitlith closed 4 years ago

kitlith commented 4 years ago

https://github.com/kitlith/microcorruption-dumper/blob/9bd68f9362a0227753381fbaf69a7f0620ca219e/src/lib.rs#L59-L60

Instead of manually figuring out that the section we want to load is the 4th one in the section table, we should create entries for all sections that have the load flag set or something.

kitlith commented 4 years ago

We now iterate and find the first section with the PT_LOAD flag set. Good enough for now.