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

Updated elf loader to accept dynamic payload sizes. #25

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

Conversation

DizzRL
Copy link
Contributor

@DizzRL DizzRL commented Dec 18, 2023

The current elf loader implementation has the elf store limited at 2mb, this change allows a payload of any size to come through.

This is done under the assumption that the section header table is at the bottom of the file, and then takes the section header offset + (entry size * number). Im not sure if this is always the case, but it seems to work with all elfs I have tried so far. (with the exception of kstuff, but its a really simple fix to make it work, the section header table offset just needs to be set to the file size.)

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