about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2023-05-03 16:42:48 -0700
committerGitHub <noreply@github.com>2023-05-03 16:42:48 -0700
commit6933be588e9dd5344d6d62d6fac82d0845d4bbe6 (patch)
treef4589b0ac9d09dec3b5c5b5f74edb1fa1d2aef37 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent7a48ba90968c3e36e58a59cf35bf982b7fffaed7 (diff)
parent0d183f8e74eca11bf525cb98cfe0de7789b90c8f (diff)
downloadrust-6933be588e9dd5344d6d62d6fac82d0845d4bbe6.tar.gz
rust-6933be588e9dd5344d6d62d6fac82d0845d4bbe6.zip
Rollup merge of #105452 - rcvalle:rust-cfi-3, r=bjorn3
Add cross-language LLVM CFI support to the Rust compiler

This PR 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).

Thank you again, ``@bjorn3,`` ``@nikic,`` ``@samitolvanen,`` and the Rust community for all the help!
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions