-
Notifications
You must be signed in to change notification settings - Fork 159
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
Implement relocations #4
Comments
I would be very interested in starting a crate with ppl that given a list of relocations and some bytes, relocates them. Goblin already parses the relocations for you for ELF; have to look at Mach relocations again (they are vastly simpler and engineered better, but that's unsurprising since Apple are masters of the binary 🤓 ), and add a new field to goblin Mach parser for relocations. @philipc @fitzgen are either of you (or anyone else) interested in starting working on a generic crate like this? |
It's something I want to work on eventually, but I don't have time for it right now. Probably want the API to work on individual relocations, rather than requiring a list, so that we can support streaming the data. |
Sure of course we'd expose a function per relocation. But that's getting into lib details :) I don't really have the time either but I'd still like to work on it, ideally not by myself |
If there is a
.rela.debug_info
section, then those relocations need to be applied before gimli can parse.debug_info
. Seeatefail/ig_server
from the libdwarf regression tests for an example.The text was updated successfully, but these errors were encountered: