about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-22 08:17:20 +0200
committerGitHub <noreply@github.com>2024-08-22 08:17:20 +0200
commit8f2c4d18e1491bfd50cfa4d7fe02ccb42216e064 (patch)
tree37304b2ce115f212d507ad999a827527a20ebbdc /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parenta8d5c6d151ef61f6648d31226597e9f60f4de2cf (diff)
parent40f1d9d15472416c53f9558074899d007fbbd1c1 (diff)
downloadrust-8f2c4d18e1491bfd50cfa4d7fe02ccb42216e064.tar.gz
rust-8f2c4d18e1491bfd50cfa4d7fe02ccb42216e064.zip
Rollup merge of #129373 - samitolvanen:cfi-module-flags, r=compiler-errors
Add missing module flags for CFI and KCFI sanitizers

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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions