Lines Matching refs:Sec

461   for (OutputSection *Sec : OutputSections) {  in finalizeAddresses()
462 Sec->OrigChunks = Sec->Chunks; in finalizeAddresses()
463 OrigNumChunks += Sec->Chunks.size(); in finalizeAddresses()
473 for (OutputSection *Sec : OutputSections) { in finalizeAddresses()
474 if (!verifyRanges(Sec->Chunks)) { in finalizeAddresses()
478 NumChunks += Sec->Chunks.size(); in finalizeAddresses()
494 for (OutputSection *Sec : OutputSections) { in finalizeAddresses()
495 Sec->Chunks = Sec->OrigChunks; in finalizeAddresses()
496 for (Chunk *C : Sec->Chunks) in finalizeAddresses()
505 for (OutputSection *Sec : OutputSections) in finalizeAddresses()
506 AddressesChanged |= createThunks(Sec, Margin); in finalizeAddresses()
575 if (auto *Sec = dyn_cast<SectionChunk>(C)) in sortBySectionOrder() local
576 if (Sec->Sym) in sortBySectionOrder()
577 return Config->Order.lookup(Sec->Sym->getName()); in sortBySectionOrder()
704 OutputSection *&Sec = Sections[{Name, OutChars}]; in createSections() local
705 if (!Sec) { in createSections()
706 Sec = make<OutputSection>(Name, OutChars); in createSections()
707 OutputSections.push_back(Sec); in createSections()
709 return Sec; in createSections()
776 OutputSection *Sec = CreateSection(Name, OutChars); in createSections() local
779 Sec->addChunk(C); in createSections()
936 for (OutputSection *Sec : OutputSections) in removeEmptySections()
937 Sec->SectionIndex = Idx++; in removeEmptySections()
1004 for (OutputSection *Sec : OutputSections) { in createSymbolAndStringTable()
1005 if (Sec->Name.size() <= COFF::NameSize) in createSymbolAndStringTable()
1007 if ((Sec->Header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0) in createSymbolAndStringTable()
1009 Sec->setStringTableOff(addEntryToStringTable(Sec->Name)); in createSymbolAndStringTable()
1070 for (OutputSection *Sec : OutputSections) in readRelocTargets()
1071 for_each(parallel::par, Sec->Chunks.begin(), Sec->Chunks.end(), in readRelocTargets()
1087 for (OutputSection *Sec : OutputSections) { in assignAddresses()
1088 if (Sec == RelocSec) in assignAddresses()
1091 Sec->Header.VirtualAddress = RVA; in assignAddresses()
1092 for (Chunk *C : Sec->Chunks) { in assignAddresses()
1102 error("section larger than 4 GiB: " + Sec->Name); in assignAddresses()
1103 Sec->Header.VirtualSize = VirtualSize; in assignAddresses()
1104 Sec->Header.SizeOfRawData = RawSize; in assignAddresses()
1106 Sec->Header.PointerToRawData = FileSize; in assignAddresses()
1283 for (OutputSection *Sec : OutputSections) { in writeHeader()
1284 Sec->writeHeaderTo(Buf); in writeHeader()
1585 for (OutputSection *Sec : OutputSections) in setSectionPermissions()
1586 if (Sec->Name == Name) in setSectionPermissions()
1587 Sec->setPermissions(Perm); in setSectionPermissions()
1598 for (OutputSection *Sec : OutputSections) { in writeSections()
1599 uint8_t *SecBuf = Buf + Sec->getFileOff(); in writeSections()
1603 if (Sec->Header.Characteristics & IMAGE_SCN_CNT_CODE) in writeSections()
1604 memset(SecBuf, 0xCC, Sec->getRawSize()); in writeSections()
1605 for_each(parallel::par, Sec->Chunks.begin(), Sec->Chunks.end(), in writeSections()
1724 for (OutputSection *Sec : OutputSections) in findSection()
1725 if (Sec->Name == Name) in findSection()
1726 return Sec; in findSection()
1744 for (OutputSection *Sec : OutputSections) { in addBaserels()
1745 if (Sec->Header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) in addBaserels()
1748 for (Chunk *C : Sec->Chunks) in addBaserels()