Home | History | Annotate | Download | only in MC

Lines Matching refs:Header

96   COFF::section Header;
133 COFF::header Header;
165 void WriteFileHeader(const COFF::header &Header);
264 memset(&Header, 0, sizeof(Header));
275 /// The length of the string table includes uint32 length header.
282 // including the length header. Allocate space for this header.
319 memset(&Header, 0, sizeof(Header));
321 Is64Bit ? Header.Machine = COFF::IMAGE_FILE_MACHINE_AMD64
322 : Header.Machine = COFF::IMAGE_FILE_MACHINE_I386;
384 coff_section->Header.Characteristics = Sec.getCharacteristics();
386 uint32_t &Characteristics = coff_section->Header.Characteristics;
480 // the S.Header.Name field. In which case why not 9999999 (7 9's instead of
490 sprintf(S.Header.Name, "/%d", unsigned(StringTableEntry));
492 std::sprintf(S.Header.Name, "/%d", unsigned(StringTableEntry));
495 std::memcpy(S.Header.Name, S.Name.c_str(), S.Name.size());
529 return (S->Header.Characteristics
536 void WinCOFFObjectWriter::WriteFileHeader(const COFF::header &Header) {
537 WriteLE16(Header.Machine);
538 WriteLE16(Header.NumberOfSections);
539 WriteLE32(Header.TimeDateStamp);
540 WriteLE32(Header.PointerToSymbolTable);
541 WriteLE32(Header.NumberOfSymbols);
542 WriteLE16(Header.SizeOfOptionalHeader);
543 WriteLE16(Header.Characteristics);
734 Header.NumberOfSections = 0;
739 MakeSectionReal(**i, ++Header.NumberOfSections);
745 Header.NumberOfSymbols = 0;
761 MakeSymbolReal(*coff_symbol, Header.NumberOfSymbols++);
765 Header.NumberOfSymbols += coff_symbol->Data.NumberOfAuxSymbols;
788 offset += COFF::SectionSize * Header.NumberOfSections;
798 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
801 Sec->Header.PointerToRawData = offset;
803 offset += Sec->Header.SizeOfRawData;
807 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
808 Sec->Header.PointerToRelocations = offset;
825 Aux.Aux.SectionDefinition.Length = Sec->Header.SizeOfRawData;
827 Sec->Header.NumberOfRelocations;
829 Sec->Header.NumberOfLineNumbers;
832 Header.PointerToSymbolTable = offset;
834 Header.TimeDateStamp = sys::TimeValue::now().toEpochTime();
837 WriteFileHeader(Header);
845 WriteSectionHeader((*i)->Header);
854 if ((*i)->Header.PointerToRawData != 0) {
855 assert(OS.tell() == (*i)->Header.PointerToRawData &&
862 assert(OS.tell() == (*i)->Header.PointerToRelocations &&
871 assert((*i)->Header.PointerToRelocations == 0 &&
876 assert(OS.tell() == Header.PointerToSymbolTable &&
877 "Header::PointerToSymbolTable is insane!");