Lines Matching refs:ehdr
170 Elf64_Ehdr *ehdr; in crash_prepare_elf64_headers() local
198 ehdr = (Elf64_Ehdr *)buf; in crash_prepare_elf64_headers()
199 phdr = (Elf64_Phdr *)(ehdr + 1); in crash_prepare_elf64_headers()
200 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in crash_prepare_elf64_headers()
201 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in crash_prepare_elf64_headers()
202 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in crash_prepare_elf64_headers()
203 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in crash_prepare_elf64_headers()
204 ehdr->e_ident[EI_OSABI] = ELF_OSABI; in crash_prepare_elf64_headers()
205 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD); in crash_prepare_elf64_headers()
206 ehdr->e_type = ET_CORE; in crash_prepare_elf64_headers()
207 ehdr->e_machine = ELF_ARCH; in crash_prepare_elf64_headers()
208 ehdr->e_version = EV_CURRENT; in crash_prepare_elf64_headers()
209 ehdr->e_phoff = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
210 ehdr->e_ehsize = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
211 ehdr->e_phentsize = sizeof(Elf64_Phdr); in crash_prepare_elf64_headers()
219 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
227 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
237 ehdr->e_phnum++; in crash_prepare_elf64_headers()
254 ehdr->e_phnum++; in crash_prepare_elf64_headers()
258 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()