Repository navigation
[release/10.0] Enable CFG for ARM64X ANCM forwarders - #68758
Merged
Merged
Conversation
Enable CFG for ARM64X ANCM forwarders
wtgodbe
approved these changes
Aug 24, 2026
akoeplinger
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #68744 to release/10.0
/cc @akoeplinger
Enable CFG for ARM64X ANCM forwarders
The ARM64X ANCM forwarders are built using direct
clandlinkinvocations, so the native mitigation settings imported bybuild.projare not applied to them. This was missed in #63437 / #63725Description
Pass
/guard:cfand/Qspectreto the ARM64 and ARM64EC compiler invocations, and pass/guard:cfand/dynamicbaseto the final ARM64X linker invocations. This enables Control Flow Guard on both forwarder DLLs.Validated with the VS 18 ARM64 toolchain.
dumpbin /headers /loadconfigreports theControl Flow GuardDLL characteristic,CF instrumented, and an FID table containing two targets for both generated forwarders.Fixes dotnet/dotnet#8565.
Customer Impact
This is required by Microsoft SDL policies.
Regression?
Risk
Compiler flags that we're using elsewhere already.
Verification
Packaging changes reviewed?
When servicing release/2.3