Skip to content

Commit b4deea8

Browse files
riscv64imac: allow shadow call stack sanitizer
1 parent a971212 commit b4deea8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_target/src/spec/targets/riscv64gc_unknown_none_elf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn target() -> Target {
2828
code_model: Some(CodeModel::Medium),
2929
emit_debug_gdb_scripts: false,
3030
eh_frame_header: false,
31-
supported_sanitizers: SanitizerSet::KERNELADDRESS,
31+
supported_sanitizers: SanitizerSet::KERNELADDRESS | SanitizerSet::SHADOWCALLSTACK,
3232
..Default::default()
3333
},
3434
}

compiler/rustc_target/src/spec/targets/riscv64imac_unknown_none_elf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn target() -> Target {
2727
code_model: Some(CodeModel::Medium),
2828
emit_debug_gdb_scripts: false,
2929
eh_frame_header: false,
30-
supported_sanitizers: SanitizerSet::KERNELADDRESS,
30+
supported_sanitizers: SanitizerSet::KERNELADDRESS | SanitizerSet::SHADOWCALLSTACK,
3131
..Default::default()
3232
},
3333
}

0 commit comments

Comments
 (0)