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

Extend LOAD segments by the size of the new section #470

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brenoguim
Copy link
Collaborator

@brenoguim brenoguim commented Feb 24, 2023

I started to investigate the reason for this comment /* !!! Why do we stop after a .dynstr section? I can't remember! */

I removed the condition, and investigated failing tests (many broke). This patch removes the condition and fixes the issues arising from it.

What happens is that without that condition we replace many more sections, making the size of the first LOAD segment insufficient to fit all sections. Also, the first LOAD segment might be read only, and we could be bringing in a section that requires writes.

I'm not sure if we should merge this. @Mic92 @cgzones this mainly goes to show the need to improve testability mentioned in #468

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