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

Implement relocations #4

Closed
philipc opened this issue Aug 30, 2016 · 3 comments
Closed

Implement relocations #4

philipc opened this issue Aug 30, 2016 · 3 comments

Comments

@philipc
Copy link
Contributor

philipc commented Aug 30, 2016

If there is a .rela.debug_info section, then those relocations need to be applied before gimli can parse .debug_info. See atefail/ig_server from the libdwarf regression tests for an example.

@m4b
Copy link
Contributor

m4b commented Jun 29, 2017

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?

@philipc
Copy link
Contributor Author

philipc commented Jun 30, 2017

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.

@m4b
Copy link
Contributor

m4b commented Jun 30, 2017

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

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

No branches or pull requests

2 participants