mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
e11d8d147b
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.
11 lines
170 B
Rust
11 lines
170 B
Rust
// compile-flags:
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// A basic test function.
|
|
pub fn test() {
|
|
}
|
|
|
|
// Ensure the module flag ehcontguard is not present
|
|
// CHECK-NOT: !"ehcontguard"
|