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

Editable sections data #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zygzagZ
Copy link
Contributor

@zygzagZ zygzagZ commented May 5, 2021

My assignment was to convert 32-bit obj files to 64-bit and vice-versa, which required fiddling with ELF symbols, relocations, adding new ones, modifying data etc.

Did not find suitable tool (did not look too long, too), decided to go with rbelftools and implement what lacked.

Idea:

  • instead of patches keep full sections data
  • allow rebuilding sections
  • allow rebuilding whole elf files
  • try to keep lazy-loading, even though when saving all data must be loaded anyway
  • keep backward compatibility

All in all, I figure it is not that bad of a code.

Assumes #62 to work.

Part of #52.

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

Successfully merging this pull request may close these issues.

1 participant