Lines Matching defs:Sec
368 MCSectionCOFF const &Sec =
371 COFFSection *coff_section = createSection(Sec.getSectionName());
372 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
382 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
384 coff_section->Header.Characteristics = Sec.getCharacteristics();
771 COFFSection *Sec = SectionMap[&i->getSection()];
773 if (Sec->Number == -1)
776 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
778 if (IsPhysicalSection(Sec)) {
779 Sec->Header.PointerToRawData = offset;
781 offset += Sec->Header.SizeOfRawData;
784 if (Sec->Relocations.size() > 0) {
785 bool RelocationsOverflow = Sec->Relocations.size() >= 0xffff;
790 Sec->Header.NumberOfRelocations = 0xffff;
792 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
794 Sec->Header.PointerToRelocations = offset;
801 offset += COFF::RelocationSize * Sec->Relocations.size();
803 for (relocations::iterator cr = Sec->Relocations.begin(),
804 er = Sec->Relocations.end();
811 assert(Sec->Symbol->Aux.size() == 1
813 AuxSymbol &Aux = Sec->Symbol->Aux[0];
816 Aux.Aux.SectionDefinition.Length = Sec->Header.SizeOfRawData;
818 Sec->Header.NumberOfRelocations;
820 Sec->Header.NumberOfLineNumbers;