Skip to content

Combine data/text sections: Pad sections to alignment #197

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

Merged
merged 4 commits into from
May 7, 2025

Conversation

LagoLunatic
Copy link
Contributor

Fixes #196. This PR aligns all combined sections to at least 4 bytes, but will align to more if the section has more alignment than that specified in the object file.

image
image

Mostly tested this on ARM, it doesn't seem to break x86 in any obvious way but I don't know much about x86.

@encounter encounter merged commit f263e49 into encounter:main May 7, 2025
24 checks passed
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.

ARM: Combine data/text sections does not pad sections to 4 byte alignment
2 participants