[PATCH] bootstrap: Disable initial-exec TLS model on powerpc
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 29 May 2021 12:38:46 +0000 (12:38 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 19 Sep 2021 18:48:33 +0000 (19:48 +0100)
Fixes #81334.

Gbp-Pq: Name u-85807.patch

src/bootstrap/builder.rs

index f1a160250dbe1cbbcde70c617de27306b4c13c9c..ee6a7a4da2cc8eb4705edee6359336bdc37c2cf0 100644 (file)
@@ -1226,7 +1226,7 @@ impl<'a> Builder<'a> {
         // efficient initial-exec TLS model. This doesn't work with `dlopen`,
         // so we can't use it by default in general, but we can use it for tools
         // and our own internal libraries.
-        if !mode.must_support_dlopen() {
+        if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
             rustflags.arg("-Ztls-model=initial-exec");
         }