Lines Matching refs:ehdr
253 EhdrType ehdr; in PutElfInMemory() local
254 memset(&ehdr, 0, sizeof(ehdr)); in PutElfInMemory()
255 uint64_t sh_offset = sizeof(ehdr); in PutElfInMemory()
256 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in PutElfInMemory()
257 ehdr.e_ident[EI_CLASS] = class_type; in PutElfInMemory()
258 ehdr.e_machine = machine_type; in PutElfInMemory()
259 ehdr.e_shstrndx = 1; in PutElfInMemory()
260 ehdr.e_shoff = sh_offset; in PutElfInMemory()
261 ehdr.e_shentsize = sizeof(ShdrType); in PutElfInMemory()
262 ehdr.e_shnum = 3; in PutElfInMemory()
263 memory->SetMemory(offset, &ehdr, sizeof(ehdr)); in PutElfInMemory()