Lines Matching refs:ehdr

239 xc_core_ehdr_init(Elf64_Ehdr *ehdr)  in xc_core_ehdr_init()  argument
241 memset(ehdr, 0, sizeof(*ehdr)); in xc_core_ehdr_init()
242 ehdr->e_ident[EI_MAG0] = ELFMAG0; in xc_core_ehdr_init()
243 ehdr->e_ident[EI_MAG1] = ELFMAG1; in xc_core_ehdr_init()
244 ehdr->e_ident[EI_MAG2] = ELFMAG2; in xc_core_ehdr_init()
245 ehdr->e_ident[EI_MAG3] = ELFMAG3; in xc_core_ehdr_init()
246 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in xc_core_ehdr_init()
247 ehdr->e_ident[EI_DATA] = ELF_ARCH_DATA; in xc_core_ehdr_init()
248 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in xc_core_ehdr_init()
249 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; in xc_core_ehdr_init()
250 ehdr->e_ident[EI_ABIVERSION] = EV_CURRENT; in xc_core_ehdr_init()
252 ehdr->e_type = ET_CORE; in xc_core_ehdr_init()
254 ehdr->e_version = EV_CURRENT; in xc_core_ehdr_init()
255 ehdr->e_entry = 0; in xc_core_ehdr_init()
256 ehdr->e_phoff = 0; in xc_core_ehdr_init()
257 ehdr->e_shoff = sizeof(*ehdr); in xc_core_ehdr_init()
258 ehdr->e_flags = ELF_CORE_EFLAGS; in xc_core_ehdr_init()
259 ehdr->e_ehsize = sizeof(*ehdr); in xc_core_ehdr_init()
260 ehdr->e_phentsize = sizeof(Elf64_Phdr); in xc_core_ehdr_init()
261 ehdr->e_phnum = 0; in xc_core_ehdr_init()
262 ehdr->e_shentsize = sizeof(Elf64_Shdr); in xc_core_ehdr_init()
452 Elf64_Ehdr ehdr; in xc_domain_dumpcore_via_callback() local
591 xc_core_ehdr_init(&ehdr); in xc_domain_dumpcore_via_callback()
631 offset = sizeof(ehdr); in xc_domain_dumpcore_via_callback()
749 ehdr.e_shnum = sheaders->num; in xc_domain_dumpcore_via_callback()
750 ehdr.e_shstrndx = strtab_idx; in xc_domain_dumpcore_via_callback()
751 ehdr.e_machine = ELF_ARCH_MACHINE; in xc_domain_dumpcore_via_callback()
752 sts = dump_rtn(xch, args, (char*)&ehdr, sizeof(ehdr)); in xc_domain_dumpcore_via_callback()