Home | History | Annotate | Download | only in yaml2obj

Lines Matching refs:COFF

1 //===- yaml2coff - Convert YAML to a COFF object file ---------------------===//
11 /// \brief The COFF component of yaml2obj.
29 /// This parses a yaml stream that represents a COFF object file.
33 // A COFF string table always starts with a 4 byte size field. Offsets into
47 if (Name.size() <= COFF::NameSize) {
74 if (Name.size() <= COFF::NameSize) {
84 Sym.Header.Type |= Sym.ComplexType << COFF::SCT_COMPLEX_TYPE_SHIFT;
123 SectionTableStart = sizeof(COFF::header) + CP.Obj.Header.SizeOfOptionalHeader;
124 SectionTableSize = sizeof(COFF::section) * CP.Obj.Sections.size();
140 COFF::RelocationSize;
157 if (AuxBytes % COFF::SymbolSize != 0) {
161 i->Header.NumberOfAuxSymbols = AuxBytes / COFF::SymbolSize;
210 OS.write(i->Header.Name, COFF::NameSize);
250 OS.write(i->Header.Name, COFF::NameSize);
280 errs() << "yaml2obj: Failed to layout COFF file!\n";
284 errs() << "yaml2obj: Failed to write COFF file!\n";