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

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

Open
Nikhil1212 opened this issue Sep 29, 2021 · 2 comments
Open

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

Nikhil1212 opened this issue Sep 29, 2021 · 2 comments
Labels

Comments

@Nikhil1212
Copy link

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

@sevaa
Copy link
Contributor

sevaa commented Mar 20, 2023

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

@sevaa
Copy link
Contributor

sevaa commented Apr 12, 2024

@Nikhil1212

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants