Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/um/
H A Delfcore.c13 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0; in elf_core_extra_phdrs()
19 const struct elfhdr *const ehdrp = in elf_core_write_extra_phdrs()
20 (struct elfhdr *) vsyscall_ehdr; in elf_core_write_extra_phdrs()
46 const struct elfhdr *const ehdrp = in elf_core_write_extra_data()
47 (struct elfhdr *) vsyscall_ehdr; in elf_core_write_extra_data()
67 const struct elfhdr *const ehdrp = in elf_core_extra_data_size()
68 (struct elfhdr *)vsyscall_ehdr; in elf_core_extra_data_size()
/linux-6.15/kernel/
H A 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()
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()
297 struct elfhdr *ehdr, in elf_read_from_buffer()
367 struct elfhdr ehdr; in kexec_elf_probe()
[all …]
/linux-6.15/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-6.15/include/linux/
H A Delf.h41 #define elfhdr elf32_hdr macro
53 #define elfhdr elf64_hdr macro
H A Dkexec.h286 const struct elfhdr *ehdr;
290 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
293 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
H A Delf-fdpic.h29 struct elfhdr hdr; /* ref copy of ELF header */
/linux-6.15/fs/
H A Dcompat_binfmt_elf.c28 #undef elfhdr
34 #define elfhdr elf32_hdr macro
H A Dbinfmt_elf.c583 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc()
608 struct elfhdr *interp_ehdr, in arch_check_elf()
637 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp()
841 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary()
842 struct elfhdr *interp_elf_ex = NULL; in load_elf_binary()
1395 struct elfhdr elf_ex; in load_elf_library()
1496 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header()
1510 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
1512 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_header()
1864 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info()
[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()
1240 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header()
1253 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1256 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header()
1427 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info()
1473 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
/linux-6.15/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-6.15/arch/powerpc/kernel/
H A Dfadump.c764 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header()
928 struct elfhdr *elf; in fadump_init_elfcore_header()
930 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header()
931 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header()
942 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header()
952 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header()
1008 struct elfhdr *elf; in fadump_populate_elfcorehdr()
1015 elf = (struct elfhdr *)bufp; in fadump_populate_elfcorehdr()
1016 bufp += sizeof(struct elfhdr); in fadump_populate_elfcorehdr()
1662 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-6.15/arch/loongarch/include/asm/
H A Delf.h212 struct elfhdr *__h = (hdr); \
228 struct elfhdr *__h = (hdr); \
/linux-6.15/arch/riscv/kernel/
H A Delf_kexec.c37 static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in riscv_kexec_elf_load()
77 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase()
207 struct elfhdr ehdr; in elf_kexec_load()
/linux-6.15/arch/parisc/kernel/
H A Dkexec_file.c23 struct elfhdr ehdr; in elf_load()
/linux-6.15/arch/mips/include/asm/
H A Delf.h283 struct elfhdr *__h = (hdr); \
311 struct elfhdr *__h = (hdr); \
/linux-6.15/arch/powerpc/kexec/
H A Delf_64.c38 struct elfhdr ehdr; in elf64_load()
H A Dcrash.c416 return sizeof(struct elfhdr) + (phdr_cnt * sizeof(Elf64_Phdr)); in arch_crash_get_elfcorehdr_size()