Skip to content

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

Merged
encounter merged 4 commits intoencounter:mainfrom
LagoLunatic:arm-combine-align
May 7, 2025
Merged

Combine data/text sections: Pad sections to alignment#197
encounter merged 4 commits intoencounter:mainfrom
LagoLunatic:arm-combine-align

Conversation

@LagoLunatic
Copy link
Collaborator

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
@LagoLunatic LagoLunatic deleted the arm-combine-align branch December 21, 2025 17:17
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