rust/compiler/rustc_codegen_ssa/src/mir
bors db8086eb60 Auto merge of #95548 - rcvalle:rust-cfi-2, r=nagisa
Add fine-grained LLVM CFI support to the Rust compiler

This PR improves the LLVM Control Flow Integrity (CFI) support in the Rust compiler by providing forward-edge control flow protection for Rust-compiled code only by aggregating function pointers in groups identified by their return and parameter types.

Forward-edge control flow protection for C or C++ and Rust -compiled code "mixed binaries" (i.e., for when C or C++ and Rust -compiled code share the same virtual address space) will be provided in later work as part of this project by identifying C char and integer type uses at the time types are encoded (see Type metadata in the design document in the tracking issue https://github.com/rust-lang/rust/issues/89653).

LLVM CFI can be enabled with -Zsanitizer=cfi and requires LTO (i.e., -Clto).

Thank you again, `@eddyb,` `@nagisa,` `@pcc,` and `@tmiasko` for all the help!
2022-07-24 01:22:36 +00:00
..
analyze.rs Move dominators from Body to BasicBlocks 2022-07-07 08:11:49 +02:00
block.rs Auto merge of #95548 - rcvalle:rust-cfi-2, r=nagisa 2022-07-24 01:22:36 +00:00
constant.rs implement valtrees as the type-system representation for constant values 2022-06-14 16:07:11 +02:00
coverageinfo.rs Add SourceScope::inlined_instance 2022-07-08 09:19:07 +02:00
debuginfo.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
intrinsic.rs various nits from review 2022-07-20 17:12:08 -04:00
mod.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
operand.rs tweak names and output and bless 2022-07-09 07:43:56 -04:00
place.rs Revert "Rollup merge of #98582 - oli-obk:unconstrained_opaque_type, r=estebank" 2022-07-20 07:55:58 +00:00
rvalue.rs add new rval, pull deref early 2022-07-12 14:26:41 +03:00
statement.rs Some tracing cleanups 2022-06-29 09:56:30 +00:00