diff options
| author | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2022-03-31 22:50:41 -0700 |
|---|---|---|
| committer | Ramon de C Valle <rcvalle@users.noreply.github.com> | 2022-07-23 10:51:34 -0700 |
| commit | bfe3c24e9a303abb5aa1d30c890c81004636346a (patch) | |
| tree | fc9fe8a239e4e665f0a34bc4c75fef7360e39c7c /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | 97b7dc2912831b504e2e3b550c2d9d3cd551b9da (diff) | |
| download | rust-bfe3c24e9a303abb5aa1d30c890c81004636346a.tar.gz rust-bfe3c24e9a303abb5aa1d30c890c81004636346a.zip | |
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).
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
