Lines Matching refs:ehdr
164 Elf64_Ehdr *ehdr; in crash_prepare_elf64_headers() local
192 ehdr = (Elf64_Ehdr *)buf; in crash_prepare_elf64_headers()
193 phdr = (Elf64_Phdr *)(ehdr + 1); in crash_prepare_elf64_headers()
194 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in crash_prepare_elf64_headers()
195 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in crash_prepare_elf64_headers()
196 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in crash_prepare_elf64_headers()
197 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in crash_prepare_elf64_headers()
198 ehdr->e_ident[EI_OSABI] = ELF_OSABI; in crash_prepare_elf64_headers()
199 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD); in crash_prepare_elf64_headers()
200 ehdr->e_type = ET_CORE; in crash_prepare_elf64_headers()
201 ehdr->e_machine = ELF_ARCH; in crash_prepare_elf64_headers()
202 ehdr->e_version = EV_CURRENT; in crash_prepare_elf64_headers()
203 ehdr->e_phoff = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
204 ehdr->e_ehsize = sizeof(Elf64_Ehdr); in crash_prepare_elf64_headers()
205 ehdr->e_phentsize = sizeof(Elf64_Phdr); in crash_prepare_elf64_headers()
213 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
221 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
231 ehdr->e_phnum++; in crash_prepare_elf64_headers()
248 ehdr->e_phnum++; in crash_prepare_elf64_headers()
252 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()