pyelftools
pyelftools copied to clipboard
Increasing the size of a section (rodata) in ELF binary
Hi everyone, I would like to add a new string constant to my binary (ELF). So, for that, I want to increase the size of the rodata section so that my constant string fits in rodata. May I know how we can increase the size of a particular section (rodata) using pyelftools.
Thanks for the help
ELF writing is not supported in pyelftools, and was never planned. You'll need some other ELF library.
@Nikhil1212
There is a write capable fork of pyelftools at https://github.com/mefistotelis/pyelftools