Home | History | Annotate | Download | only in MC

Lines Matching refs:Sec

345   MCSectionCOFF const &Sec =
348 COFFSection *coff_section = createSection(Sec.getSectionName());
349 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
350 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
351 if (const MCSymbol *S = Sec.getCOMDATSymbol()) {
367 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
369 coff_section->Header.Characteristics = Sec.getCharacteristics();
470 COFFSection *Sec =
473 if (coff_symbol->Section && coff_symbol->Section != Sec)
476 coff_symbol->Section = Sec;
904 COFFSection *Sec = SectionMap[&Section.getSection()];
906 if (Sec->Number == -1)
909 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(&Section);
911 if (IsPhysicalSection(Sec)) {
912 Sec->Header.PointerToRawData = offset;
914 offset += Sec->Header.SizeOfRawData;
917 if (Sec->Relocations.size() > 0) {
918 bool RelocationsOverflow = Sec->Relocations.size() >= 0xffff;
923 Sec->Header.NumberOfRelocations = 0xffff;
925 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
927 Sec->Header.PointerToRelocations = offset;
934 offset += COFF::RelocationSize * Sec->Relocations.size();
936 for (auto & Relocation : Sec->Relocations) {
942 assert(Sec->Symbol->Aux.size() == 1 &&
944 AuxSymbol &Aux = Sec->Symbol->Aux[0];
947 Aux.Aux.SectionDefinition.Length = Sec->Header.SizeOfRawData;
949 Sec
951 Sec->Header.NumberOfLineNumbers;