svn commit: r353738 - head/contrib/llvm/tools/lld/ELF

Dimitry Andric dim at FreeBSD.org
Fri Oct 18 20:02:46 UTC 2019


Author: dim
Date: Fri Oct 18 20:02:46 2019
New Revision: 353738
URL: https://svnweb.freebsd.org/changeset/base/353738

Log:
  Pull in r372651 from upstream lld trunk (by Simon Atanasyan):
  
    [mips] Support elf32btsmipn32_fbsd / elf32ltsmipn32_fbsd emulations
  
    Patch by Kyle Evans.
  
  Requested by:	kevans
  MFC after:	1 month
  X-MFC-With:	r353358

Modified:
  head/contrib/llvm/tools/lld/ELF/Driver.cpp

Modified: head/contrib/llvm/tools/lld/ELF/Driver.cpp
==============================================================================
--- head/contrib/llvm/tools/lld/ELF/Driver.cpp	Fri Oct 18 19:30:12 2019	(r353737)
+++ head/contrib/llvm/tools/lld/ELF/Driver.cpp	Fri Oct 18 20:02:46 2019	(r353738)
@@ -966,7 +966,8 @@ static void readConfigs(opt::InputArgList &args) {
     StringRef s = arg->getValue();
     std::tie(config->ekind, config->emachine, config->osabi) =
         parseEmulation(s);
-    config->mipsN32Abi = (s == "elf32btsmipn32" || s == "elf32ltsmipn32");
+    config->mipsN32Abi =
+        (s.startswith("elf32btsmipn32") || s.startswith("elf32ltsmipn32"));
     config->emulation = s;
   }
 


More information about the svn-src-head mailing list