Lines Matching refs:ehdr
327 Elf64_Ehdr *ehdr; in crash_prepare_elf64_headers() local
355 ehdr = (Elf64_Ehdr *)buf; in crash_prepare_elf64_headers()
356 phdr = (Elf64_Phdr *)(ehdr + 1); in crash_prepare_elf64_headers()
357 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in crash_prepare_elf64_headers()
358 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in crash_prepare_elf64_headers()
359 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in crash_prepare_elf64_headers()
360 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in crash_prepare_elf64_headers()
361 ehdr->e_ident[EI_OSABI] = ELF_OSABI; in crash_prepare_elf64_headers()
362 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD); in crash_prepare_elf64_headers()
363 ehdr->e_type = ET_CORE; in crash_prepare_elf64_headers()
364 ehdr->e_machine = ELF_ARCH; in crash_prepare_elf64_headers()
365 ehdr->e_version = EV_CURRENT; in crash_prepare_elf64_headers()
366 ehdr->e_phoff = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
367 ehdr->e_ehsize = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
368 ehdr->e_phentsize = sizeof(Elf64_Phdr); in crash_prepare_elf64_headers()
376 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
384 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
394 ehdr->e_phnum++; in crash_prepare_elf64_headers()
411 ehdr->e_phnum++; in crash_prepare_elf64_headers()
414 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()