rust/compiler/rustc_symbol_mangling/src
Ramon de C Valle 5ad7a646a5 Add fine-grained LLVM CFI support to the Rust compiler
This commit 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 #89653).

LLVM CFI can be enabled with -Zsanitizer=cfi and requires LTO (i.e.,
-Clto).
2022-07-23 10:51:34 -07:00
..
typeid Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
legacy.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
lib.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
test.rs only_local: always check for misuse 2022-05-10 12:07:35 +02:00
typeid.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
v0.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00