mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
40f1d9d154
Set the cfi-normalize-integers and kcfi-offset module flags when Control-Flow Integrity sanitizers are used, so functions generated by the LLVM backend use the same CFI/KCFI options as rustc. cfi-normalize-integers tells LLVM to also use integer normalization for generated functions when -Zsanitizer-cfi-normalize-integers is used. kcfi-offset specifies the number of prefix nops between the KCFI type hash and the function entry when -Z patchable-function-entry is used. Note that LLVM assumes all indirectly callable functions use the same number of prefix NOPs with -Zsanitizer=kcfi. |
||
---|---|---|
.. | ||
add-cfi-normalize-integers-flag.rs | ||
add-kcfi-flag.rs | ||
add-kcfi-offset-flag.rs | ||
emit-kcfi-operand-bundle-attr-no-sanitize.rs | ||
emit-kcfi-operand-bundle-itanium-cxx-abi-generalized.rs | ||
emit-kcfi-operand-bundle-itanium-cxx-abi-normalized-generalized.rs | ||
emit-kcfi-operand-bundle-itanium-cxx-abi-normalized.rs | ||
emit-kcfi-operand-bundle-itanium-cxx-abi.rs | ||
emit-kcfi-operand-bundle.rs | ||
emit-type-metadata-trait-objects.rs |