Lines Matching refs:elf
308 Elf64_Ehdr *elf; in create_opalcore() local
357 elf = (Elf64_Ehdr *)bufp; in create_opalcore()
359 memcpy(elf->e_ident, ELFMAG, SELFMAG); in create_opalcore()
360 elf->e_ident[EI_CLASS] = ELF_CLASS; in create_opalcore()
361 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
362 elf->e_ident[EI_VERSION] = EV_CURRENT; in create_opalcore()
363 elf->e_ident[EI_OSABI] = ELF_OSABI; in create_opalcore()
364 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in create_opalcore()
365 elf->e_type = cpu_to_be16(ET_CORE); in create_opalcore()
366 elf->e_machine = cpu_to_be16(ELF_ARCH); in create_opalcore()
367 elf->e_version = cpu_to_be32(EV_CURRENT); in create_opalcore()
368 elf->e_entry = 0; in create_opalcore()
369 elf->e_phoff = cpu_to_be64(sizeof(Elf64_Ehdr)); in create_opalcore()
370 elf->e_shoff = 0; in create_opalcore()
371 elf->e_flags = 0; in create_opalcore()
373 elf->e_ehsize = cpu_to_be16(sizeof(Elf64_Ehdr)); in create_opalcore()
374 elf->e_phentsize = cpu_to_be16(sizeof(Elf64_Phdr)); in create_opalcore()
375 elf->e_phnum = 0; in create_opalcore()
376 elf->e_shentsize = 0; in create_opalcore()
377 elf->e_shnum = 0; in create_opalcore()
378 elf->e_shstrndx = 0; in create_opalcore()
419 elf->e_phnum = cpu_to_be16(count); in create_opalcore()