Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/um/
Delfcore.c12 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0; in elf_core_extra_phdrs()
18 const struct elfhdr *const ehdrp = in elf_core_write_extra_phdrs()
19 (struct elfhdr *) vsyscall_ehdr; in elf_core_write_extra_phdrs()
45 const struct elfhdr *const ehdrp = in elf_core_write_extra_data()
46 (struct elfhdr *) vsyscall_ehdr; in elf_core_write_extra_data()
66 const struct elfhdr *const ehdrp = in elf_core_extra_data_size()
67 (struct elfhdr *)vsyscall_ehdr; in elf_core_extra_data_size()
/Linux-v5.4/kernel/
Dkexec_elf.c24 static inline bool elf_is_elf_file(const struct elfhdr *ehdr) in elf_is_elf_file()
29 static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value) in elf64_to_cpu()
39 static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value) in elf32_to_cpu()
49 static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value) in elf16_to_cpu()
63 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len) in elf_is_ehdr_sane()
119 static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr) in elf_read_ehdr()
121 struct elfhdr *buf_ehdr; in elf_read_ehdr()
144 buf_ehdr = (struct elfhdr *) buf; in elf_read_ehdr()
208 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdr()
255 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdrs()
[all …]
/Linux-v5.4/include/linux/
Delf.h27 #define elfhdr elf32_hdr macro
38 #define elfhdr elf64_hdr macro
Dkexec.h229 const struct elfhdr *ehdr;
233 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
236 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
Delf-fdpic.h17 struct elfhdr hdr; /* ref copy of ELF header */
/Linux-v5.4/fs/
Dcompat_binfmt_elf.c26 #undef elfhdr
31 #define elfhdr elf32_hdr macro
Dbinfmt_em86.c32 struct elfhdr elf_ex; in load_em86()
35 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
Dbinfmt_elf.c164 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables()
416 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs()
494 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc()
518 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, in arch_check_elf()
519 struct elfhdr *interp_ehdr, in arch_check_elf()
546 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp()
689 struct elfhdr elf_ex; in load_elf_binary()
690 struct elfhdr interp_elf_ex; in load_elf_binary()
702 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
1181 struct elfhdr elf_ex; in load_elf_library()
[all …]
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()
1290 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header()
1303 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1306 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1474 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info()
1556 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
/Linux-v5.4/fs/proc/
Dkcore.c115 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size()
329 phdrs_offset = sizeof(struct elfhdr); in read_kcore()
333 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore()
334 struct elfhdr ehdr = { in read_kcore()
348 .e_phoff = sizeof(struct elfhdr), in read_kcore()
350 .e_ehsize = sizeof(struct elfhdr), in read_kcore()
355 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
/Linux-v5.4/arch/powerpc/kernel/
Dfadump.c337 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size()
657 struct elfhdr *elf; in fadump_update_elfcore_header()
660 elf = (struct elfhdr *)bufp; in fadump_update_elfcore_header()
661 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
841 struct elfhdr *elf; in fadump_init_elfcore_header()
843 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
844 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
855 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header()
862 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header()
956 struct elfhdr *elf; in fadump_create_elfcore_headers()
[all …]
Dkexec_elf_64.c37 struct elfhdr ehdr; in elf64_load()
Dprom_init.c1077 Elf32_Ehdr elfhdr; member
1110 .elfhdr = {
/Linux-v5.4/arch/alpha/boot/tools/
Dobjstrip.c31 # define elfhdr elf64_hdr macro
61 struct elfhdr *elf; in main()
149 elf = (struct elfhdr *) buf; in main()
/Linux-v5.4/arch/mips/include/asm/
Delf.h285 struct elfhdr *__h = (hdr); \
308 struct elfhdr *__h = (hdr); \
324 struct elfhdr *__h = (hdr); \
/Linux-v5.4/arch/parisc/kernel/
Dkexec_file.c23 struct elfhdr ehdr; in elf_load()
/Linux-v5.4/arch/ia64/include/asm/
Delf.h210 #define GATE_EHDR ((const struct elfhdr *) GATE_ADDR)