diff options
| author | Arlie Davis <ardavis@microsoft.com> | 2023-11-17 10:05:38 -0800 |
|---|---|---|
| committer | Arlie Davis <ardavis@microsoft.com> | 2023-11-21 13:41:23 -0800 |
| commit | e11d8d147b94043d54d0a6c8ff0bdb0568b794ca (patch) | |
| tree | 8d209b5b6c776646a481e11225ccf41cf314ecbf /config.example.toml | |
| parent | 2f8d81f9dbac6b8df982199f69da04a4c8357227 (diff) | |
| download | rust-e11d8d147b94043d54d0a6c8ff0bdb0568b794ca.tar.gz rust-e11d8d147b94043d54d0a6c8ff0bdb0568b794ca.zip | |
Add support for generating the EHCont section
In the future Windows will enable Control-flow Enforcement Technology (CET aka Shadow Stacks). To protect the path where the context is updated during exception handling, the binary is required to enumerate valid unwind entrypoints in a dedicated section which is validated when the context is being set during exception handling. The required support for EHCONT has already been merged into LLVM, long ago. This change adds the Rust codegen option to enable it. Reference: * https://reviews.llvm.org/D40223 This also adds a new `ehcont-guard` option to the bootstrap config which enables EHCont Guard when building std.
Diffstat (limited to 'config.example.toml')
| -rw-r--r-- | config.example.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml index 170856bd97d..5f9ae039b25 100644 --- a/config.example.toml +++ b/config.example.toml @@ -686,6 +686,10 @@ change-id = 116881 # This only applies from stage 1 onwards, and only for Windows targets. #control-flow-guard = false +# Enable Windows EHCont Guard checks in the standard library. +# This only applies from stage 1 onwards, and only for Windows targets. +#ehcont-guard = false + # Enable symbol-mangling-version v0. This can be helpful when profiling rustc, # as generics will be preserved in symbols (rather than erased into opaque T). # When no setting is given, the new scheme will be used when compiling the |
