summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Driver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 4cff5dcb4d1..0c6c86a61d8 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -509,6 +509,12 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
Config->Verbose = Args.hasArg(OPT_verbose);
Config->WarnCommon = Args.hasArg(OPT_warn_common);
+ if (Config->EMachine == EM_MIPS)
+ // For now MipsGotSection class is not ready for concurent access
+ // from multiple thread. The problem is in the getPageEntryOffset
+ // method. So turn Threads off for this target.
+ Config->Threads = false;
+
Config->DynamicLinker = getString(Args, OPT_dynamic_linker);
Config->Entry = getString(Args, OPT_entry);
Config->Fini = getString(Args, OPT_fini, "_fini");
OpenPOWER on IntegriCloud