From: John Paul Adrian Glaubitz Date: Sat, 29 May 2021 12:38:46 +0000 (+0000) Subject: [PATCH] bootstrap: Disable initial-exec TLS model on powerpc X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b7f11d04daf8269df95ae6e0bc57fdf4c3eadcd;p=rustc-mozilla.git [PATCH] bootstrap: Disable initial-exec TLS model on powerpc Fixes #81334. Gbp-Pq: Name u-85807.patch --- diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index f1a160250..ee6a7a4da 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -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"); }