Lines Matching refs:sec
174 auto sec = coffObj->getSection(i);
175 if (!sec)
176 fatal("getSection failed: #" + Twine(i) + ": " + toString(sec.takeError()));
177 return *sec;
192 const coff_section *sec = getSection(i);
193 if (sec->Characteristics & IMAGE_SCN_LNK_COMDAT)
203 const coff_section *sec = getSection(sectionNumber);
206 if (Expected<StringRef> e = coffObj->getSectionName(sec))
214 cantFail(coffObj->getSectionContents(sec, data));
220 addrsigSec = sec;
225 callgraphSec = sec;
243 if (sec->Characteristics & llvm::COFF::IMAGE_SCN_LNK_REMOVE)
245 auto *c = make<SectionChunk>(this, sec);
263 else if (ctx.config.tailMerge && sec->NumberOfRelocations == 0 &&
299 error(toString(this) + ": associative comdat " + name + " (sec " +
301 parentName + " (sec " + Twine(parentIndex) + ")");
695 if (SectionChunk *sec = SectionChunk::findByName(debugChunks, secName))
696 return sec->consumeDebugMagic();
1118 const coff_section *sec = CHECK(coffObj->getSection(i), file);
1119 if (rva >= sec->VirtualAddress &&
1120 rva <= sec->VirtualAddress + sec->VirtualSize) {
1121 return (sec->Characteristics & COFF::IMAGE_SCN_CNT_CODE) != 0;