summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index 817c3e37fa5..2eea0a407c9 100644
--- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@ -575,7 +575,8 @@ std::error_code FileCOFF::cacheSectionAttributes() {
// 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);
}
OpenPOWER on IntegriCloud