Skip to content

Commit

Permalink
Unrolled build for rust-lang#124677
Browse files Browse the repository at this point in the history
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``
  • Loading branch information
rust-timer authored May 4, 2024
2 parents 7dd170f + 0637709 commit e35f1bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/rustc_target/src/spec/base/fuchsia.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::spec::{crt_objects, cvs, Cc, LinkOutputKind, LinkerFlavor, Lld, TargetOptions};
use crate::spec::{
crt_objects, cvs, Cc, FramePointer, LinkOutputKind, LinkerFlavor, Lld, TargetOptions,
};

pub fn opts() -> TargetOptions {
// This mirrors the linker options provided by clang. We presume lld for
Expand Down Expand Up @@ -38,6 +40,7 @@ pub fn opts() -> TargetOptions {
]),
position_independent_executables: true,
has_thread_local: true,
frame_pointer: FramePointer::NonLeaf,
..Default::default()
}
}

0 comments on commit e35f1bc

Please sign in to comment.