]> git.proxmox.com Git - rustc.git/blobdiff - debian/patches/d-fix-mips64el-bootstrap.patch
Merge tag 'debian/1.50.0+dfsg1-1_exp4' into debian/sid
[rustc.git] / debian / patches / d-fix-mips64el-bootstrap.patch
index 49ebde6fb65c59dcfa0aca8399c5813448ed10fc..4d2bcacebbb38ec1b67e3179bcabbfa9411a8413 100644 (file)
@@ -10,3 +10,25 @@ Bug: https://github.com/rust-lang/rust/issues/52108
  
          build_section = "target.{}".format(self.build)
          target_features = []
+--- a/compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs
++++ b/compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs
+@@ -10,7 +10,7 @@
+             endian: "big".to_string(),
+             // NOTE(mips64r2) matches C toolchain
+             cpu: "mips64r2".to_string(),
+-            features: "+mips64r2".to_string(),
++            features: "+mips64r2,+xgot".to_string(),
+             max_atomic_width: Some(64),
+             mcount: "_mcount".to_string(),
+--- a/compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs
++++ b/compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs
+@@ -9,7 +9,7 @@
+         options: TargetOptions {
+             // NOTE(mips64r2) matches C toolchain
+             cpu: "mips64r2".to_string(),
+-            features: "+mips64r2".to_string(),
++            features: "+mips64r2,+xgot".to_string(),
+             max_atomic_width: Some(64),
+             mcount: "_mcount".to_string(),