Lines Matching refs:Write8
83 Write8(0x7f); // e_ident[EI_MAG0] in WriteHeader()
84 Write8('E'); // e_ident[EI_MAG1] in WriteHeader()
85 Write8('L'); // e_ident[EI_MAG2] in WriteHeader()
86 Write8('F'); // e_ident[EI_MAG3] in WriteHeader()
88 Write8(is64Bit() ? ELF::ELFCLASS64 : ELF::ELFCLASS32); // e_ident[EI_CLASS] in WriteHeader()
91 Write8(isLittleEndian() ? ELF::ELFDATA2LSB : ELF::ELFDATA2MSB); in WriteHeader()
93 Write8(ELF::EV_CURRENT); // e_ident[EI_VERSION] in WriteHeader()
96 case Triple::FreeBSD: Write8(ELF::ELFOSABI_FREEBSD); break; in WriteHeader()
97 case Triple::Linux: Write8(ELF::ELFOSABI_LINUX); break; in WriteHeader()
98 default: Write8(ELF::ELFOSABI_NONE); break; in WriteHeader()
100 Write8(0); // e_ident[EI_ABIVERSION] in WriteHeader()