Lines Matching refs:Section

84   COFFSection *Section = nullptr;  member in __anon7d37be940111::COFFSymbol
296 COFFSection *Section = createSection(MCSec.getSectionName()); in defineSection() local
298 Section->Symbol = Symbol; in defineSection()
299 Symbol->Section = Section; in defineSection()
306 if (COMDATSymbol->Section) in defineSection()
308 COMDATSymbol->Section = Section; in defineSection()
319 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection()
320 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection()
323 Section->MCSection = &MCSec; in defineSection()
324 SectionMap[&MCSec] = Section; in defineSection()
364 if (Sym->Section && Sym->Section != Sec) in DefineSymbol()
379 WeakDefault->Section = Sec; in DefineSymbol()
396 Sym->Section = Sec; in DefineSymbol()
559 for (auto &Section : Sections) in writeSectionHeaders() local
560 Arr.push_back(Section.get()); in writeSectionHeaders()
565 for (auto &Section : Arr) { in writeSectionHeaders() local
566 if (Section->Number == -1) in writeSectionHeaders()
569 COFF::section &S = Section->Header; in writeSectionHeaders()
570 if (Section->Relocations.size() >= 0xffff) in writeSectionHeaders()
673 for (const auto &Section : Asm) in executePostLayoutBinding() local
674 defineSection(static_cast<const MCSectionCOFF &>(Section)); in executePostLayoutBinding()
867 static bool isAssociative(const COFFSection &Section) { in isAssociative() argument
868 return Section.Symbol->Aux[0].Aux.SectionDefinition.Selection == in isAssociative()
874 auto Assign = [&](COFFSection &Section) { in assignSectionNumbers() argument
875 Section.Number = I; in assignSectionNumbers()
876 Section.Symbol->Data.SectionNumber = I; in assignSectionNumbers()
877 Section.Symbol->Aux[0].Aux.SectionDefinition.Number = I; in assignSectionNumbers()
884 for (const std::unique_ptr<COFFSection> &Section : Sections) in assignSectionNumbers() local
885 if (!isAssociative(*Section)) in assignSectionNumbers()
886 Assign(*Section); in assignSectionNumbers()
887 for (const std::unique_ptr<COFFSection> &Section : Sections) in assignSectionNumbers() local
888 if (isAssociative(*Section)) in assignSectionNumbers()
889 Assign(*Section); in assignSectionNumbers()
900 for (const auto &Section : Asm) { in assignFileOffsets() local
901 COFFSection *Sec = SectionMap[&Section]; in assignFileOffsets()
906 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(&Section); in assignFileOffsets()
970 if (Symbol->Section) in writeObject()
971 Symbol->Data.SectionNumber = Symbol->Section->Number; in writeObject()
1005 for (auto &Section : Sections) { in writeObject() local
1006 if (Section->Symbol->Aux[0].Aux.SectionDefinition.Selection != in writeObject()
1010 const MCSectionCOFF &MCSec = *Section->MCSection; in writeObject()
1032 Section->Symbol->Aux[0].Aux.SectionDefinition.Number = AssocSec->Number; in writeObject()