[lld] r256355 - Add machine type check for MIPS-specific code path.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 23 17:32:40 PST 2015


Author: ruiu
Date: Wed Dec 23 19:32:39 2015
New Revision: 256355

URL: http://llvm.org/viewvc/llvm-project?rev=256355&view=rev
Log:
Add machine type check for MIPS-specific code path.

Modified:
    lld/trunk/ELF/InputFiles.cpp

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=256355&r1=256354&r2=256355&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Dec 23 19:32:39 2015
@@ -233,7 +233,7 @@ void elf2::ObjectFile<ELFT>::initializeS
       else if (Name == ".eh_frame")
         Sections[I] =
             new (this->EHAlloc.Allocate()) EHInputSection<ELFT>(this, &Sec);
-      else if (Name == ".reginfo")
+      else if (Config->EMachine == EM_MIPS && Name == ".reginfo")
         Sections[I] =
             new (this->Alloc) MipsReginfoInputSection<ELFT>(this, &Sec);
       else if (shouldMerge<ELFT>(Sec))




More information about the llvm-commits mailing list