Lines Matching full:coff
1 //===- yaml2coff - Convert YAML to a COFF object file ---------------------===//
11 /// \brief The COFF component of yaml2obj.
30 /// This parses a yaml stream that represents a COFF object file.
34 // A COFF string table always starts with a 4 byte size field. Offsets into
48 if (Name.size() <= COFF::NameSize) {
75 if (Name.size() <= COFF::NameSize) {
85 Sym.Header.Type |= Sym.ComplexType << COFF::SCT_COMPLEX_TYPE_SHIFT;
124 SectionTableStart = sizeof(COFF::header) + CP.Obj.Header.SizeOfOptionalHeader;
125 SectionTableSize = sizeof(COFF::section) * CP.Obj.Sections.size();
141 COFF::RelocationSize;
166 (i->File.size() + COFF::SymbolSize - 1) / COFF::SymbolSize;
238 OS.write(i->Header.Name, COFF::NameSize);
278 OS.write(i->Header.Name, COFF::NameSize);
303 (i->File.size() + COFF::SymbolSize - 1) / COFF::SymbolSize;
304 uint32_t NumberOfAuxBytes = NumberOfAuxRecords * COFF::SymbolSize;
345 errs() << "yaml2obj: Failed to layout COFF file!\n";
349 errs() << "yaml2obj: Failed to write COFF file!\n";