Home | History | Annotate | Download | only in MC

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();
800 COFFSection *Sec = SectionMap[&i->getSection()];
802 if (Sec->Number == -1)
805 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
807 if (IsPhysicalSection(Sec)) {
808 Sec->Header.PointerToRawData = offset;
810 offset += Sec->Header.SizeOfRawData;
813 if (Sec->Relocations.size() > 0) {
814 bool RelocationsOverflow = Sec->Relocations.size() >= 0xffff;
819 Sec->Header.NumberOfRelocations = 0xffff;
821 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
823 Sec->Header.PointerToRelocations = offset;
830 offset += COFF::RelocationSize * Sec->Relocations.size();
832 for (relocations::iterator cr = Sec->Relocations.begin(),
833 er = Sec->Relocations.end();
840 assert(Sec->Symbol->Aux.size() == 1
842 AuxSymbol &Aux = Sec->Symbol->Aux[0];
845 Aux.Aux.SectionDefinition.Length = Sec->Header.SizeOfRawData;
847 Sec->Header.NumberOfRelocations;
849 Sec->Header.NumberOfLineNumbers;