Lines Matching refs:Ehdr

1459   const typename ELFT::Ehdr &Ehdr = HeadersFile.getHeader();  in readProgramHeaders()  local
1467 PrHdr.OriginalOffset = PrHdr.Offset = PrHdr.VAddr = EhdrOffset + Ehdr.e_phoff; in readProgramHeaders()
1469 PrHdr.FileSize = PrHdr.MemSize = Ehdr.e_phentsize * Ehdr.e_phnum; in readProgramHeaders()
1897 const typename ELFFile<ELFT>::Elf_Ehdr &Ehdr = HeadersFile->getHeader(); in build() local
1898 Obj.Is64Bits = Ehdr.e_ident[EI_CLASS] == ELFCLASS64; in build()
1899 Obj.OSABI = Ehdr.e_ident[EI_OSABI]; in build()
1900 Obj.ABIVersion = Ehdr.e_ident[EI_ABIVERSION]; in build()
1901 Obj.Type = Ehdr.e_type; in build()
1902 Obj.Machine = Ehdr.e_machine; in build()
1903 Obj.Version = Ehdr.e_version; in build()
1904 Obj.Entry = Ehdr.e_entry; in build()
1905 Obj.Flags = Ehdr.e_flags; in build()
1983 Elf_Ehdr &Ehdr = *reinterpret_cast<Elf_Ehdr *>(Buf->getBufferStart()); in writeEhdr() local
1984 std::fill(Ehdr.e_ident, Ehdr.e_ident + 16, 0); in writeEhdr()
1985 Ehdr.e_ident[EI_MAG0] = 0x7f; in writeEhdr()
1986 Ehdr.e_ident[EI_MAG1] = 'E'; in writeEhdr()
1987 Ehdr.e_ident[EI_MAG2] = 'L'; in writeEhdr()
1988 Ehdr.e_ident[EI_MAG3] = 'F'; in writeEhdr()
1989 Ehdr.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; in writeEhdr()
1990 Ehdr.e_ident[EI_DATA] = ELFT::TargetEndianness == llvm::endianness::big in writeEhdr()
1993 Ehdr.e_ident[EI_VERSION] = EV_CURRENT; in writeEhdr()
1994 Ehdr.e_ident[EI_OSABI] = Obj.OSABI; in writeEhdr()
1995 Ehdr.e_ident[EI_ABIVERSION] = Obj.ABIVersion; in writeEhdr()
1997 Ehdr.e_type = Obj.Type; in writeEhdr()
1998 Ehdr.e_machine = Obj.Machine; in writeEhdr()
1999 Ehdr.e_version = Obj.Version; in writeEhdr()
2000 Ehdr.e_entry = Obj.Entry; in writeEhdr()
2003 Ehdr.e_phnum = llvm::size(Obj.segments()); in writeEhdr()
2004 Ehdr.e_phoff = (Ehdr.e_phnum != 0) ? Obj.ProgramHdrSegment.Offset : 0; in writeEhdr()
2005 Ehdr.e_phentsize = (Ehdr.e_phnum != 0) ? sizeof(Elf_Phdr) : 0; in writeEhdr()
2006 Ehdr.e_flags = Obj.Flags; in writeEhdr()
2007 Ehdr.e_ehsize = sizeof(Elf_Ehdr); in writeEhdr()
2009 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr()
2010 Ehdr.e_shoff = Obj.SHOff; in writeEhdr()
2019 Ehdr.e_shnum = 0; in writeEhdr()
2021 Ehdr.e_shnum = Shnum; in writeEhdr()
2029 Ehdr.e_shstrndx = SHN_XINDEX; in writeEhdr()
2031 Ehdr.e_shstrndx = Obj.SectionNames->Index; in writeEhdr()
2033 Ehdr.e_shentsize = 0; in writeEhdr()
2034 Ehdr.e_shoff = 0; in writeEhdr()
2035 Ehdr.e_shnum = 0; in writeEhdr()
2036 Ehdr.e_shstrndx = 0; in writeEhdr()