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

Align methods at 16-byte boundaries for CFG #106132

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

MichalStrehovsky
Copy link
Member

@MichalStrehovsky MichalStrehovsky commented Aug 8, 2024

Fixes #105326

Per https://learn.microsoft.com/en-us/windows/win32/secbp/pe-metadata#function-alignment "Functions that are address taken and are therefore included in the GFIDS table should be made 16-byte aligned, if possible.". We'd align at 4 bytes if SIZE_OPT is enabled.

Cc @dotnet/ilc-contrib

Fixes dotnet#105326

Per https://learn.microsoft.com/en-us/windows/win32/secbp/pe-metadata#function-alignment "Functions that are address taken and are therefore included in the GFIDS table should be made 16-byte aligned, if possible.". We'd align at 4 bytes if SIZE_OPT is enabled.
@MichalStrehovsky
Copy link
Member Author

/ba-g nuget restore issue in an unrelated leg

@MichalStrehovsky MichalStrehovsky merged commit 03beecc into dotnet:main Aug 8, 2024
84 of 87 checks passed
@MichalStrehovsky MichalStrehovsky deleted the fix105326 branch August 8, 2024 19:00
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Look at method alignment with OptimizationPreference=Size and ControlFlowGuard=Guard
2 participants