/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | elfcore.c | 12 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()
|
/kernel/linux/linux-6.6/arch/x86/um/ |
H A D | elfcore.c | 12 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()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | kexec_elf.c | 24 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 *ehd in elf_read_phdrs() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_elf.c | 24 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 *ehd in elf_read_phdrs() [all...] |
/kernel/linux/common_modules/xpm/validator/ |
H A D | elf_code_segment_info.c | 24 struct elfhdr elf_ehdr; 42 static uint64_t elf64_get_value(const struct elfhdr *ehdr, uint64_t value) in elf64_get_value() 53 static uint32_t elf32_get_value(const struct elfhdr *ehdr, uint32_t value) in elf32_get_value() 64 static uint16_t elf16_get_value(const struct elfhdr *ehdr, uint16_t value) in elf16_get_value() 174 static int get_elf32_info(struct elfhdr *elf_ehdr, struct elf_info *elf_info) in get_elf32_info() 201 static int get_elf64_info(struct elfhdr *elf_ehdr, struct elf_info *elf_info) in get_elf64_info() 231 struct elfhdr *elf_ehdr = &elf_info->elf_ehdr; in elf_check_and_get_code_segment_offset() 234 ret = read_elf_info(file, (void *)elf_ehdr, sizeof(struct elfhdr), 0); in elf_check_and_get_code_segment_offset()
|
/kernel/linux/linux-5.10/fs/ |
H A D | binfmt_em86.c | 32 struct elfhdr elf_ex; in load_em86() 35 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
|
H A D | compat_binfmt_elf.c | 28 #undef elfhdr macro 34 #define elfhdr elf32_hdr macro
|
H A D | binfmt_elf.c | 172 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables() 457 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() 534 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc() 558 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, in arch_check_elf() 559 struct elfhdr *interp_ehdr, in arch_check_elf() 588 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp() 837 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() 838 struct elfhdr *interp_elf_ex = NULL; in load_elf_binary() 1373 struct elfhdr elf_e in load_elf_library() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | elf.h | 31 #define elfhdr elf32_hdr macro 43 #define elfhdr elf64_hdr macro
|
H A D | kexec.h | 266 const struct elfhdr *ehdr; 270 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, 273 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
|
H A D | elf-fdpic.h | 17 struct elfhdr hdr; /* ref copy of ELF header */
|
/kernel/linux/linux-6.6/fs/ |
H A D | compat_binfmt_elf.c | 28 #undef elfhdr macro 34 #define elfhdr elf32_hdr macro
|
H A D | binfmt_elf.c | 175 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec, in create_elf_tables() 466 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() 537 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc() 561 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, in arch_check_elf() 562 struct elfhdr *interp_ehdr, in arch_check_elf() 591 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp() 840 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() 841 struct elfhdr *interp_elf_ex = NULL; in load_elf_binary() 1374 struct elfhdr elf_e in load_elf_library() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | elf.h | 41 #define elfhdr elf32_hdr macro 53 #define elfhdr elf64_hdr macro
|
H A D | kexec.h | 281 const struct elfhdr *ehdr; 285 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, 288 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
|
H A D | elf-fdpic.h | 29 struct elfhdr hdr; /* ref copy of ELF header */
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | kcore.c | 115 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size() 327 phdrs_offset = sizeof(struct elfhdr); in read_kcore() 331 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore() 332 struct elfhdr ehdr = { in read_kcore() 346 .e_phoff = sizeof(struct elfhdr), in read_kcore() 348 .e_ehsize = sizeof(struct elfhdr), in read_kcore() 353 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | kcore.c | 114 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size() 334 phdrs_offset = sizeof(struct elfhdr); in read_kcore_iter() 338 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore_iter() 339 struct elfhdr ehdr = { in read_kcore_iter() 353 .e_phoff = sizeof(struct elfhdr), in read_kcore_iter() 355 .e_ehsize = sizeof(struct elfhdr), in read_kcore_iter() 360 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore_iter()
|
/kernel/linux/linux-5.10/arch/alpha/boot/tools/ |
H A D | objstrip.c | 31 # define elfhdr elf64_hdr macro 61 struct elfhdr *elf; in main() 149 elf = (struct elfhdr *) buf; in main()
|
/kernel/linux/linux-6.6/arch/alpha/boot/tools/ |
H A D | objstrip.c | 31 # define elfhdr elf64_hdr macro 61 struct elfhdr *elf; in main() 149 elf = (struct elfhdr *) buf; in main()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | fadump.c | 364 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size() 760 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 954 struct elfhdr *elf; in fadump_init_elfcore_header() 956 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 957 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 968 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header() 975 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1065 struct elfhdr *elf; in fadump_create_elfcore_headers() 1069 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1070 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | fadump.c | 376 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size() 772 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 966 struct elfhdr *elf; in fadump_init_elfcore_header() 968 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 969 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 980 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header() 990 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1080 struct elfhdr *elf; in fadump_create_elfcore_headers() 1084 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1085 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | elf.h | 217 struct elfhdr *__h = (hdr); \ 233 struct elfhdr *__h = (hdr); \
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A D | elf.h | 212 struct elfhdr *__h = (hdr); \ 228 struct elfhdr *__h = (hdr); \
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | elf.h | 285 struct elfhdr *__h = (hdr); \ 308 struct elfhdr *__h = (hdr); \ 324 struct elfhdr *__h = (hdr); \
|