[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>
Sat, 18 Sep 2021 10:45:21 +0000 (11:45 +0100)
Fixes #81334.

Gbp-Pq: Name u-85807.patch

src/bootstrap/builder.rs

index 0fdafa39386340cf42924412383ab4ce77217ead..decbfa4dfdf591a95b1a540584c85343275095da 100644 (file)
@@ -1212,7 +1212,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");
         }