Lines Matching refs:elf

965 	struct elfhdr *elf;  in fadump_init_elfcore_header()  local
967 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
969 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fadump_init_elfcore_header()
970 elf->e_ident[EI_CLASS] = ELF_CLASS; in fadump_init_elfcore_header()
971 elf->e_ident[EI_DATA] = ELF_DATA; in fadump_init_elfcore_header()
972 elf->e_ident[EI_VERSION] = EV_CURRENT; in fadump_init_elfcore_header()
973 elf->e_ident[EI_OSABI] = ELF_OSABI; in fadump_init_elfcore_header()
974 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fadump_init_elfcore_header()
975 elf->e_type = ET_CORE; in fadump_init_elfcore_header()
976 elf->e_machine = ELF_ARCH; in fadump_init_elfcore_header()
977 elf->e_version = EV_CURRENT; in fadump_init_elfcore_header()
978 elf->e_entry = 0; in fadump_init_elfcore_header()
979 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header()
980 elf->e_shoff = 0; in fadump_init_elfcore_header()
983 elf->e_flags = 2; in fadump_init_elfcore_header()
985 elf->e_flags = 1; in fadump_init_elfcore_header()
987 elf->e_flags = 0; in fadump_init_elfcore_header()
989 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header()
990 elf->e_phentsize = sizeof(struct elf_phdr); in fadump_init_elfcore_header()
991 elf->e_phnum = 0; in fadump_init_elfcore_header()
992 elf->e_shentsize = 0; in fadump_init_elfcore_header()
993 elf->e_shnum = 0; in fadump_init_elfcore_header()
994 elf->e_shstrndx = 0; in fadump_init_elfcore_header()
1079 struct elfhdr *elf; in fadump_create_elfcore_headers() local
1083 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers()
1105 (elf->e_phnum)++; in fadump_create_elfcore_headers()
1120 (elf->e_phnum)++; in fadump_create_elfcore_headers()
1160 (elf->e_phnum)++; in fadump_create_elfcore_headers()