Rollup merge of #85807 - glaubitz:powerpc-disable-initial-exec-tls, r=Mark-Simulacrum

bootstrap: Disable initial-exec TLS model on powerpc

Fixes #81334.
This commit is contained in:
Yuki Okushi 2021-08-07 01:46:31 +09:00 committed by GitHub
commit 352ad62265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1291,7 +1291,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");
}