Skip to content

Commit 7029f47

Browse files
authored
Rollup merge of #149553 - BartMassey-upstream:aarch64-none-default-uwtables, r=wesleywiser
added default_uwtables=true to aarch64_unknown_none targets This patch adds DWARF unwinding tables by default for `aarch64-unknown-none` and `aarch64-unknown-none-softfloat` targets. By implication, the `core` library for these targets will be built with unwinding tables. These tables are often useful, and are especially needed for backtracing through `core` on embedded targets. The tables can be turned off for user compilation with `-C force-unwind-tables=no` if desired. (I am the lead maintainer for these targets in the Rust Embedded Working Group, and have discussed this with REWG.)
2 parents 45b2a71 + 48002fc commit 7029f47

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub(crate) fn target() -> Target {
2727
max_atomic_width: Some(128),
2828
stack_probes: StackProbeType::Inline,
2929
panic_strategy: PanicStrategy::Abort,
30+
default_uwtable: true,
3031
..Default::default()
3132
};
3233
Target {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub(crate) fn target() -> Target {
2323
supported_sanitizers: SanitizerSet::KCFI | SanitizerSet::KERNELADDRESS,
2424
stack_probes: StackProbeType::Inline,
2525
panic_strategy: PanicStrategy::Abort,
26+
default_uwtable: true,
2627
..Default::default()
2728
};
2829
Target {

0 commit comments

Comments
 (0)