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

Expose data+offset from ParsingIterator? #39

Open
dreiss opened this issue Jun 5, 2024 · 0 comments
Open

Expose data+offset from ParsingIterator? #39

dreiss opened this issue Jun 5, 2024 · 0 comments

Comments

@dreiss
Copy link

dreiss commented Jun 5, 2024

I'm trying to use this crate to relocate an ELF object. My strategy is to make a copy of the object, parse one copy to find relocations, and use them to modify the other copy. This works fine, but I also need to relocate the elf header, section header table, program header table, and symbol table. The problem is that ParsingIterator doesn't let me query where it is in the file, so if I use it to traverse these structures, I won't be able to modify the corresponding bytes in the second copy of the object. Would it be reasonable for ParsingIterator to expose these?

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

1 participant