Lines Matching refs:ehdr
88 EhdrType ehdr; in CreateElf() local
89 memset(&ehdr, 0, sizeof(ehdr)); in CreateElf()
90 uint64_t sh_offset = sizeof(ehdr); in CreateElf()
91 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in CreateElf()
92 ehdr.e_ident[EI_CLASS] = class_type; in CreateElf()
93 ehdr.e_machine = machine_type; in CreateElf()
94 ehdr.e_shstrndx = 1; in CreateElf()
95 ehdr.e_shoff = sh_offset; in CreateElf()
96 ehdr.e_shentsize = sizeof(ShdrType); in CreateElf()
97 ehdr.e_shnum = 3; in CreateElf()
98 memory_->SetMemory(offset, &ehdr, sizeof(ehdr)); in CreateElf()