Differential D23385 Diff 67526 lang/rust/files/patch-src_librustc__target_spec_i686__unknown__freebsd.rs
Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/files/patch-src_librustc__target_spec_i686__unknown__freebsd.rs
--- src/librustc_target/spec/i686_unknown_freebsd.rs.orig 2019-04-08 12:42:31 UTC | --- src/librustc_target/spec/i686_unknown_freebsd.rs.orig 2019-12-16 15:38:05 UTC | ||||
+++ src/librustc_target/spec/i686_unknown_freebsd.rs | +++ src/librustc_target/spec/i686_unknown_freebsd.rs | ||||
@@ -2,7 +2,7 @@ use crate::spec::{LinkerFlavor, Target, TargetResult}; | @@ -2,9 +2,11 @@ use crate::spec::{LinkerFlavor, Target, TargetResult}; | ||||
pub fn target() -> TargetResult { | pub fn target() -> TargetResult { | ||||
let mut base = super::freebsd_base::opts(); | let mut base = super::freebsd_base::opts(); | ||||
- base.cpu = "pentium4".to_string(); | - base.cpu = "pentium4".to_string(); | ||||
+ base.cpu = "pentiumpro".to_string(); | + base.cpu = "pentiumpro".to_string(); | ||||
base.max_atomic_width = Some(64); | base.max_atomic_width = Some(64); | ||||
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string()); | - base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string()); | ||||
+ let pre_link_args = base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap(); | |||||
+ pre_link_args.push("-m32".to_string()); | |||||
+ pre_link_args.push("-Wl,-znotext".to_string()); | |||||
base.stack_probes = true; | base.stack_probes = true; | ||||
Ok(Target { |