[lld] r217815 - Adjust lld to handle LLVM r217812

David Majnemer david.majnemer at gmail.com
Mon Sep 15 12:54:53 PDT 2014


Author: majnemer
Date: Mon Sep 15 14:54:53 2014
New Revision: 217815

URL: http://llvm.org/viewvc/llvm-project?rev=217815&view=rev
Log:
Adjust lld to handle LLVM r217812

Modified:
    lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp

Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp?rev=217815&r1=217814&r2=217815&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp Mon Sep 15 14:54:53 2014
@@ -575,7 +575,8 @@ std::error_code FileCOFF::cacheSectionAt
     // Handle associative sections.
     if (aux->Selection == llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
       const coff_section *parent;
-      if (std::error_code ec = _obj->getSection(aux->Number, parent))
+      if (std::error_code ec =
+              _obj->getSection(aux->getNumber(sym.isBigObj()), parent))
         return ec;
       _association[parent].insert(sec);
     }





More information about the llvm-commits mailing list