Skip to content

Commit e35f1bc

Browse files
authored
Unrolled build for rust-lang#124677
Rollup merge of rust-lang#124677 - djkoloski:set_fuchsia_frame_pointer, r=tmandry Set non-leaf frame pointers on Fuchsia targets This is part of our work to enable shadow call stack sanitization on Fuchsia, see [this Fuchsia issue](https://g-issues.fuchsia.dev/issues/327643884). r? ``@tmandry``
2 parents 7dd170f + 0637709 commit e35f1bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_target/src/spec/base/fuchsia.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use crate::spec::{crt_objects, cvs, Cc, LinkOutputKind, LinkerFlavor, Lld, TargetOptions};
1+
use crate::spec::{
2+
crt_objects, cvs, Cc, FramePointer, LinkOutputKind, LinkerFlavor, Lld, TargetOptions,
3+
};
24

35
pub fn opts() -> TargetOptions {
46
// This mirrors the linker options provided by clang. We presume lld for
@@ -38,6 +40,7 @@ pub fn opts() -> TargetOptions {
3840
]),
3941
position_independent_executables: true,
4042
has_thread_local: true,
43+
frame_pointer: FramePointer::NonLeaf,
4144
..Default::default()
4245
}
4346
}

0 commit comments

Comments
 (0)