Lines Matching refs:elf

539 				   struct file *elf, bool is_interp,  in arch_elf_pt_proc()  argument
1468 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1471 memset(elf, 0, sizeof(*elf)); in fill_elf_header()
1473 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header()
1474 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header()
1475 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header()
1476 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header()
1477 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header()
1479 elf->e_type = ET_CORE; in fill_elf_header()
1480 elf->e_machine = machine; in fill_elf_header()
1481 elf->e_version = EV_CURRENT; in fill_elf_header()
1482 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
1483 elf->e_flags = flags; in fill_elf_header()
1484 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_header()
1485 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_header()
1486 elf->e_phnum = segs; in fill_elf_header()
1801 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
1844 fill_elf_header(elf, phdrs, in fill_note_info()
2030 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
2062 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
2146 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() argument
2149 elf->e_shoff = e_shoff; in fill_extnum_info()
2150 elf->e_shentsize = sizeof(*shdr4extnum); in fill_extnum_info()
2151 elf->e_shnum = 1; in fill_extnum_info()
2152 elf->e_shstrndx = SHN_UNDEF; in fill_extnum_info()
2157 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
2158 shdr4extnum->sh_link = elf->e_shstrndx; in fill_extnum_info()
2174 struct elfhdr elf; in elf_core_dump() local
2204 if (!fill_note_info(&elf, e_phnum, &info, cprm->siginfo, cprm->regs)) in elf_core_dump()
2209 offset += sizeof(elf); /* Elf header */ in elf_core_dump()
2237 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
2242 if (!dump_emit(cprm, &elf, sizeof(elf))) in elf_core_dump()