Lines Matching refs:elf
324 struct elfhdr *elf; in elf_kcore_store_hdr() local
330 elf = (struct elfhdr *) bufp; in elf_kcore_store_hdr()
333 memcpy(elf->e_ident, ELFMAG, SELFMAG); in elf_kcore_store_hdr()
334 elf->e_ident[EI_CLASS] = ELF_CLASS; in elf_kcore_store_hdr()
335 elf->e_ident[EI_DATA] = ELF_DATA; in elf_kcore_store_hdr()
336 elf->e_ident[EI_VERSION]= EV_CURRENT; in elf_kcore_store_hdr()
337 elf->e_ident[EI_OSABI] = ELF_OSABI; in elf_kcore_store_hdr()
338 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in elf_kcore_store_hdr()
339 elf->e_type = ET_CORE; in elf_kcore_store_hdr()
340 elf->e_machine = ELF_ARCH; in elf_kcore_store_hdr()
341 elf->e_version = EV_CURRENT; in elf_kcore_store_hdr()
342 elf->e_entry = 0; in elf_kcore_store_hdr()
343 elf->e_phoff = sizeof(struct elfhdr); in elf_kcore_store_hdr()
344 elf->e_shoff = 0; in elf_kcore_store_hdr()
345 elf->e_flags = ELF_CORE_EFLAGS; in elf_kcore_store_hdr()
346 elf->e_ehsize = sizeof(struct elfhdr); in elf_kcore_store_hdr()
347 elf->e_phentsize= sizeof(struct elf_phdr); in elf_kcore_store_hdr()
348 elf->e_phnum = nphdr; in elf_kcore_store_hdr()
349 elf->e_shentsize= 0; in elf_kcore_store_hdr()
350 elf->e_shnum = 0; in elf_kcore_store_hdr()
351 elf->e_shstrndx = 0; in elf_kcore_store_hdr()