Home
last modified time | relevance | path

Searched refs:elfhdr (Results 1 – 15 of 15) sorted by relevance

/linux/arch/riscv/kernel/
H A Dkexec_elf.c24 static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in riscv_kexec_elf_load()
64 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase()
117 struct elfhdr ehdr; in elf_kexec_load()
/linux/fs/proc/
H A Dkcore.c131 kcore_data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + kcore_phdrs_len + in update_kcore_size()
345 phdrs_offset = sizeof(struct elfhdr); in read_kcore_iter()
349 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore_iter()
350 struct elfhdr ehdr = { in read_kcore_iter()
364 .e_phoff = sizeof(struct elfhdr), in read_kcore_iter()
366 .e_ehsize = sizeof(struct elfhdr), in read_kcore_iter()
371 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore_iter()
/linux/include/linux/
H A Delf.h41 #define elfhdr elf32_hdr macro
53 #define elfhdr elf64_hdr macro
H A Dkexec.h324 const struct elfhdr *ehdr;
328 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
331 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
H A Delf-fdpic.h29 struct elfhdr hdr; /* ref copy of ELF header */
/linux/arch/alpha/boot/tools/
H A Dobjstrip.c31 # define elfhdr elf64_hdr macro
61 struct elfhdr *elf; in main()
149 elf = (struct elfhdr *) buf; in main()
/linux/arch/loongarch/kernel/
H A Dkexec_elf.c21 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in _elf_kexec_load()
61 struct elfhdr ehdr; in elf_kexec_load()
/linux/fs/
H A Dbinfmt_elf.c165 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables()
521 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs()
592 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc()
616 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, in arch_check_elf()
617 struct elfhdr *interp_ehdr, in arch_check_elf()
646 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp()
850 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary()
851 struct elfhdr *interp_elf_ex = NULL; in load_elf_binary()
1438 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header()
1452 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
[all …]
H A Dbinfmt_elf_fdpic.c104 static int is_elf(struct elfhdr *hdr, struct file *file) in is_elf()
125 static int is_constdisp(struct elfhdr *hdr) in is_constdisp()
205 exec_params.hdr = *(struct elfhdr *) bprm->buf; in load_elf_fdpic_binary()
285 interp_params.hdr = *((struct elfhdr *) bprm->buf); in load_elf_fdpic_binary()
1246 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header()
1259 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1262 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1434 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info()
1480 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
/linux/arch/powerpc/kernel/
H A Dfadump.c762 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
926 struct elfhdr *elf; in fadump_init_elfcore_header()
928 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
929 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
940 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header()
950 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header()
1006 struct elfhdr *elf; in fadump_populate_elfcorehdr()
1013 elf = (struct elfhdr *)bufp; in fadump_populate_elfcorehdr()
1014 bufp += sizeof(struct elfhdr); in fadump_populate_elfcorehdr()
1657 elfcorehdr_size = sizeof(struct elfhdr) + (elf_phdr_cnt * sizeof(struct elf_phdr)); in fadump_setup_elfcorehdr_buf()
H A Dprom_init.c1139 Elf32_Ehdr elfhdr; member
1172 .elfhdr = {
/linux/arch/loongarch/include/asm/
H A Delf.h243 struct elfhdr *__h = (hdr); \
259 struct elfhdr *__h = (hdr); \
/linux/arch/mips/include/asm/
H A Delf.h285 struct elfhdr *__h = (hdr); \
313 struct elfhdr *__h = (hdr); \
/linux/arch/parisc/kernel/
H A Dkexec_file.c23 struct elfhdr ehdr; in elf_load()
/linux/arch/powerpc/kexec/
H A Delf_64.c38 struct elfhdr ehdr; in elf64_load()