reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/llvm-objcopy/ELF/Object.cpp
 1688   std::fill(Ehdr.e_ident, Ehdr.e_ident + 16, 0);
 1688   std::fill(Ehdr.e_ident, Ehdr.e_ident + 16, 0);
 1689   Ehdr.e_ident[EI_MAG0] = 0x7f;
 1690   Ehdr.e_ident[EI_MAG1] = 'E';
 1691   Ehdr.e_ident[EI_MAG2] = 'L';
 1692   Ehdr.e_ident[EI_MAG3] = 'F';
 1693   Ehdr.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32;
 1694   Ehdr.e_ident[EI_DATA] =
 1696   Ehdr.e_ident[EI_VERSION] = EV_CURRENT;
 1697   Ehdr.e_ident[EI_OSABI] = Obj.OSABI;
 1698   Ehdr.e_ident[EI_ABIVERSION] = Obj.ABIVersion;
 1700   Ehdr.e_type = Obj.Type;
 1701   Ehdr.e_machine = Obj.Machine;
 1702   Ehdr.e_version = Obj.Version;
 1703   Ehdr.e_entry = Obj.Entry;
 1706   Ehdr.e_phnum = llvm::size(Obj.segments());
 1707   Ehdr.e_phoff = (Ehdr.e_phnum != 0) ? Obj.ProgramHdrSegment.Offset : 0;
 1707   Ehdr.e_phoff = (Ehdr.e_phnum != 0) ? Obj.ProgramHdrSegment.Offset : 0;
 1708   Ehdr.e_phentsize = (Ehdr.e_phnum != 0) ? sizeof(Elf_Phdr) : 0;
 1708   Ehdr.e_phentsize = (Ehdr.e_phnum != 0) ? sizeof(Elf_Phdr) : 0;
 1709   Ehdr.e_flags = Obj.Flags;
 1710   Ehdr.e_ehsize = sizeof(Elf_Ehdr);
 1712     Ehdr.e_shentsize = sizeof(Elf_Shdr);
 1713     Ehdr.e_shoff = Obj.SHOff;
 1722       Ehdr.e_shnum = 0;
 1724       Ehdr.e_shnum = Shnum;
 1732       Ehdr.e_shstrndx = SHN_XINDEX;
 1734       Ehdr.e_shstrndx = Obj.SectionNames->Index;
 1736     Ehdr.e_shentsize = 0;
 1737     Ehdr.e_shoff = 0;
 1738     Ehdr.e_shnum = 0;
 1739     Ehdr.e_shstrndx = 0;