Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b3fcd56

Browse files
authoredJan 23, 2025
Rollup merge of #135905 - workingjubilee:softly-sanitize-aarch64-floats, r=rcvalle
Enable kernel sanitizers for aarch64-unknown-none-softfloat We want kernels to be able to use this bare metal target, so let's enable the sanitizers that kernels want to use. cc ```@rcvalle``` ```@ojeda``` ```@maurer```
2 parents 2532ef4 + 6b06aa6 commit b3fcd56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎compiler/rustc_target/src/spec/targets/aarch64_unknown_none_softfloat.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// For example, `-C target-cpu=cortex-a53`.
88

99
use crate::spec::{
10-
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, StackProbeType, Target, TargetOptions,
10+
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, SanitizerSet, StackProbeType, Target,
11+
TargetOptions,
1112
};
1213

1314
pub(crate) fn target() -> Target {
@@ -19,6 +20,7 @@ pub(crate) fn target() -> Target {
1920
relocation_model: RelocModel::Static,
2021
disable_redzone: true,
2122
max_atomic_width: Some(128),
23+
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
2224
stack_probes: StackProbeType::Inline,
2325
panic_strategy: PanicStrategy::Abort,
2426
..Default::default()

0 commit comments

Comments
 (0)
Failed to load comments.