[PowerPC] Work around TLS linker bug
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 29 Jan 2015 19:08:51 +0000 (19:08 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 29 Jan 2015 19:08:51 +0000 (19:08 +0000)
commitf32a1acee89983cf992aba8b1ce3775f4b0bba94
tree4f1fbc3c734f227804daa0cae0a8dae5e39f5a0b
parentd5bb7e142bdbe7a992156a8ada6531442da1e7eb
[PowerPC] Work around TLS linker bug

Work around a bug in GNU ld (and gold) linker versions up to 2.25
that may mis-optimize code generated by this version of clang/LLVM
to access general-dynamic or local-dynamic TLS variables.

Bug is fixed here:
https://sourceware.org/ml/binutils/2015-01/msg00318.html

llvm-svn: 227480
clang/lib/Driver/Tools.cpp
clang/test/Driver/ppc-features.cpp