Lines Matching refs:elf
536 struct file *elf, bool is_interp, in arch_elf_pt_proc() argument
1452 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1455 memset(elf, 0, sizeof(*elf)); in fill_elf_header()
1457 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header()
1458 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header()
1459 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header()
1460 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header()
1461 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header()
1463 elf->e_type = ET_CORE; in fill_elf_header()
1464 elf->e_machine = machine; in fill_elf_header()
1465 elf->e_version = EV_CURRENT; in fill_elf_header()
1466 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
1467 elf->e_flags = flags; in fill_elf_header()
1468 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_header()
1469 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_header()
1470 elf->e_phnum = segs; in fill_elf_header()
1786 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
1829 fill_elf_header(elf, phdrs, in fill_note_info()
2015 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
2047 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
2131 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() argument
2134 elf->e_shoff = e_shoff; in fill_extnum_info()
2135 elf->e_shentsize = sizeof(*shdr4extnum); in fill_extnum_info()
2136 elf->e_shnum = 1; in fill_extnum_info()
2137 elf->e_shstrndx = SHN_UNDEF; in fill_extnum_info()
2142 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
2143 shdr4extnum->sh_link = elf->e_shstrndx; in fill_extnum_info()
2159 struct elfhdr elf; in elf_core_dump() local
2189 if (!fill_note_info(&elf, e_phnum, &info, cprm->siginfo, cprm->regs)) in elf_core_dump()
2194 offset += sizeof(elf); /* Elf header */ in elf_core_dump()
2221 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
2226 if (!dump_emit(cprm, &elf, sizeof(elf))) in elf_core_dump()