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

add support for modifying and writing back to file #15

Closed
ghost opened this issue Dec 18, 2013 · 3 comments
Closed

add support for modifying and writing back to file #15

ghost opened this issue Dec 18, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 18, 2013

It would be great to be able to modify certain segments and sections and be able to write dump out the same to a file.

@eliben
Copy link
Owner

eliben commented Dec 27, 2013

This is currently a non-goal for pyelftools, sorry.

@eliben eliben closed this as completed Dec 27, 2013
@mefistotelis
Copy link
Contributor

mefistotelis commented Feb 22, 2019

I made a support for adding/modifying ELF sections and writing back the changes; they're on my fork and I use it in my tools (ie. a tool which converts BIN firmware file for ARM-based embedded devices back to ELF).

But my approach/interface may be sub-optimal - I implemented things as I needed them, without a master design.

Maybe, even if merging elf write support is not within foreseeable plans, we need a discussion on how such write interface should look like?

Fork with write support:
https://github.com/mefistotelis/pyelftools
Example use:
https://github.com/o-gs/dji-firmware-tools/blob/master/arm_bin2elf.py

@eliben
Copy link
Owner

eliben commented Feb 23, 2019

It's fine to keep it on your fork. I still don't plan to add this feature to pyelftools - I just don't have the time to add features currently

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