rust/compiler/rustc_codegen_ssa/src
Ramon de C Valle 004aa15b47 Add cross-language LLVM CFI support to the Rust compiler
This commit adds cross-language LLVM Control Flow Integrity (CFI)
support to the Rust compiler by adding the
`-Zsanitizer-cfi-normalize-integers` option to be used with Clang
`-fsanitize-cfi-icall-normalize-integers` for normalizing integer types
(see https://reviews.llvm.org/D139395).

It provides 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). For more
information about LLVM CFI and cross-language LLVM CFI support for the
Rust compiler, see design document in the tracking issue #89653.

Cross-language LLVM CFI can be enabled with -Zsanitizer=cfi and
-Zsanitizer-cfi-normalize-integers, and requires proper (i.e.,
non-rustc) LTO (i.e., -Clinker-plugin-lto).
2023-05-03 22:41:29 +00:00
..
back Remove WithOptconstParam. 2023-04-20 17:48:32 +00:00
coverageinfo Use &IndexSlice instead of &IndexVec where possible 2023-04-02 17:35:37 -07:00
debuginfo Store hashes in special types so they aren't accidentally encoded as numbers 2023-04-18 10:52:47 -04:00
mir Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
traits Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
base.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
codegen_attrs.rs Spelling - compiler 2023-04-17 16:09:18 -04:00
common.rs DELETE - fn span_invalid_monomorphization_error and localize intrinsics macros 2022-12-27 20:59:22 -05:00
errors.rs Spelling - compiler 2023-04-17 16:09:18 -04:00
glue.rs Use size_of_val instead of manual calculation 2023-03-17 19:55:49 -07:00
lib.rs Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
meth.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
mono_item.rs Store a LocalDefId in hir::AnonConst. 2022-11-13 14:06:11 +00:00
target_features.rs Add riscv relax target feature 2023-04-02 07:30:42 -07:00