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
487 std::sprintf(S.Header.Name, "/%d", unsigned(StringTableEntry));
489 std::memcpy(S.Header.Name, S.Name.c_str(), S.Name.size());
523 return (S->Header.Characteristics
530 void WinCOFFObjectWriter::WriteFileHeader(const COFF::header &Header) {
531 WriteLE16(Header.Machine);
532 WriteLE16(Header.NumberOfSections);
533 WriteLE32(Header.TimeDateStamp);
534 WriteLE32(Header.PointerToSymbolTable);
535 WriteLE32(Header.NumberOfSymbols);
536 WriteLE16(Header.SizeOfOptionalHeader);
537 WriteLE16(Header.Characteristics);
728 Header.NumberOfSections = 0;
733 MakeSectionReal(**i, ++Header.NumberOfSections);
739 Header.NumberOfSymbols = 0;
755 MakeSymbolReal(*coff_symbol, Header.NumberOfSymbols++);
759 Header.NumberOfSymbols += coff_symbol->Data.NumberOfAuxSymbols;
782 offset += COFF::SectionSize * Header.NumberOfSections;
792 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
795 Sec->Header.PointerToRawData = offset;
797 offset += Sec->Header.SizeOfRawData;
801 Sec->Header.NumberOfRelocations = Sec->Relocations.size();
802 Sec->Header.PointerToRelocations = offset;
819 Aux.Aux.SectionDefinition.Length = Sec->Header.SizeOfRawData;
821 Sec->Header.NumberOfRelocations;
823 Sec->Header.NumberOfLineNumbers;
826 Header.PointerToSymbolTable = offset;
828 Header.TimeDateStamp = sys::TimeValue::now().toEpochTime();
831 WriteFileHeader(Header);
839 WriteSectionHeader((*i)->Header);
848 if ((*i)->Header.PointerToRawData != 0) {
849 assert(OS.tell() == (*i)->Header.PointerToRawData &&
856 assert(OS.tell() == (*i)->Header.PointerToRelocations &&
865 assert((*i)->Header.PointerToRelocations == 0 &&
870 assert(OS.tell() == Header.PointerToSymbolTable &&
871 "Header::PointerToSymbolTable is insane!");