Lines Matching refs:elf
949 struct elfhdr *elf; in fadump_init_elfcore_header() local
951 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
953 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fadump_init_elfcore_header()
954 elf->e_ident[EI_CLASS] = ELF_CLASS; in fadump_init_elfcore_header()
955 elf->e_ident[EI_DATA] = ELF_DATA; in fadump_init_elfcore_header()
956 elf->e_ident[EI_VERSION] = EV_CURRENT; in fadump_init_elfcore_header()
957 elf->e_ident[EI_OSABI] = ELF_OSABI; in fadump_init_elfcore_header()
958 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fadump_init_elfcore_header()
959 elf->e_type = ET_CORE; in fadump_init_elfcore_header()
960 elf->e_machine = ELF_ARCH; in fadump_init_elfcore_header()
961 elf->e_version = EV_CURRENT; in fadump_init_elfcore_header()
962 elf->e_entry = 0; in fadump_init_elfcore_header()
963 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header()
964 elf->e_shoff = 0; in fadump_init_elfcore_header()
966 elf->e_flags = _CALL_ELF; in fadump_init_elfcore_header()
968 elf->e_flags = 0; in fadump_init_elfcore_header()
970 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header()
971 elf->e_phentsize = sizeof(struct elf_phdr); in fadump_init_elfcore_header()
972 elf->e_phnum = 0; in fadump_init_elfcore_header()
973 elf->e_shentsize = 0; in fadump_init_elfcore_header()
974 elf->e_shnum = 0; in fadump_init_elfcore_header()
975 elf->e_shstrndx = 0; in fadump_init_elfcore_header()
1060 struct elfhdr *elf; in fadump_create_elfcore_headers() local
1064 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers()
1086 (elf->e_phnum)++; in fadump_create_elfcore_headers()
1101 (elf->e_phnum)++; in fadump_create_elfcore_headers()
1141 (elf->e_phnum)++; in fadump_create_elfcore_headers()