Lines Matching refs:elf
539 struct file *elf, bool is_interp, in arch_elf_pt_proc() argument
1490 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1493 memset(elf, 0, sizeof(*elf)); in fill_elf_header()
1495 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header()
1496 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header()
1497 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header()
1498 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header()
1499 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header()
1501 elf->e_type = ET_CORE; in fill_elf_header()
1502 elf->e_machine = machine; in fill_elf_header()
1503 elf->e_version = EV_CURRENT; in fill_elf_header()
1504 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
1505 elf->e_flags = flags; in fill_elf_header()
1506 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_header()
1507 elf->e_phentsize = sizeof(struct elf_phdr); in fill_elf_header()
1508 elf->e_phnum = segs; in fill_elf_header()
1855 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() argument
1894 fill_elf_header(elf, phdrs, in fill_note_info()
1899 fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); in fill_note_info()
2003 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() argument
2006 elf->e_shoff = e_shoff; in fill_extnum_info()
2007 elf->e_shentsize = sizeof(*shdr4extnum); in fill_extnum_info()
2008 elf->e_shnum = 1; in fill_extnum_info()
2009 elf->e_shstrndx = SHN_UNDEF; in fill_extnum_info()
2014 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
2015 shdr4extnum->sh_link = elf->e_shstrndx; in fill_extnum_info()
2030 struct elfhdr elf; in elf_core_dump() local
2056 if (!fill_note_info(&elf, e_phnum, &info, cprm)) in elf_core_dump()
2061 offset += sizeof(elf); /* Elf header */ in elf_core_dump()
2089 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
2094 if (!dump_emit(cprm, &elf, sizeof(elf))) in elf_core_dump()