Skip to content

Commit

Permalink
Unrolled build for rust-lang#135905
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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```
  • Loading branch information
rust-timer authored Jan 24, 2025
2 parents 1c9837d + 6b06aa6 commit 0ef033f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
// For example, `-C target-cpu=cortex-a53`.

use crate::spec::{
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, StackProbeType, Target, TargetOptions,
Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, SanitizerSet, StackProbeType, Target,
TargetOptions,
};

pub(crate) fn target() -> Target {
Expand All @@ -19,6 +20,7 @@ pub(crate) fn target() -> Target {
relocation_model: RelocModel::Static,
disable_redzone: true,
max_atomic_width: Some(128),
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
stack_probes: StackProbeType::Inline,
panic_strategy: PanicStrategy::Abort,
..Default::default()
Expand Down

0 comments on commit 0ef033f

Please sign in to comment.