pyelftools icon indicating copy to clipboard operation
pyelftools copied to clipboard

Increasing the size of a section (rodata) in ELF binary

Open Nikhil1212 opened this issue 3 years ago • 2 comments

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

Nikhil1212 avatar Sep 29 '21 18:09 Nikhil1212

ELF writing is not supported in pyelftools, and was never planned. You'll need some other ELF library.

sevaa avatar Mar 20 '23 14:03 sevaa

@Nikhil1212

There is a write capable fork of pyelftools at https://github.com/mefistotelis/pyelftools

sevaa avatar Apr 12 '24 14:04 sevaa