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

write out replace sections in original order #430

Merged
merged 1 commit into from
Nov 5, 2022
Merged

write out replace sections in original order #430

merged 1 commit into from
Nov 5, 2022

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Nov 5, 2022

Libc and other programs sometimes make assumption in which order sections.

i.e. glibc expects that the strtab is after the symtab section: https://github.com/bminor/glibc/blob/9cc9d61ee12f2f8620d8e0ea3c42af02bf07fe1e/elf/dl-fptr.c#L179

To decrease the likelyhood of breakages we keep the relative order the same when replacing section.

Thank you!

Please do your best to include a regression test
so that the quality of future releases can be preserved.

Libc and other programs sometimes make assumption in which order
sections.

i.e. glibc expects that the strtab is after the symtab section: https://github.com/bminor/glibc/blob/9cc9d61ee12f2f8620d8e0ea3c42af02bf07fe1e/elf/dl-fptr.c#L179

To decrease the likelyhood of breakages we keep the relative order the
same when replacing section.
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.

None yet

1 participant