about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorWesley Norris <repnop@outlook.com>2022-09-11 19:36:19 -0400
committerWesley Norris <repnop@outlook.com>2023-02-14 20:54:25 -0500
commit19714385e06f5c9281455c5ce69368f05885cdc8 (patch)
tree2d60e76a592df13258a96f8ddbd3fa4d3f345f78 /compiler/rustc_codegen_llvm/src/llvm
parent0416b1a6f6d5c42696494e1a3a33580fd3f669d8 (diff)
downloadrust-19714385e06f5c9281455c5ce69368f05885cdc8.tar.gz
rust-19714385e06f5c9281455c5ce69368f05885cdc8.zip
Add `kernel-address` sanitizer support for freestanding targets
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 8b4861962b2..7aab666fc5e 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -482,6 +482,8 @@ pub struct SanitizerOptions {
     pub sanitize_thread: bool,
     pub sanitize_hwaddress: bool,
     pub sanitize_hwaddress_recover: bool,
+    pub sanitize_kernel_address: bool,
+    pub sanitize_kernel_address_recover: bool,
 }
 
 /// LLVMRelocMode