/openbmc/linux/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()
|
/openbmc/linux/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 *ehdr = elf_info->ehdr; in elf_read_phdrs() [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 39 static int load_elf_sections(const struct elfhdr *hdr, struct elf_phdr *phdr, 48 static void bswap_ehdr(struct elfhdr *ehdr) in bswap_ehdr() 116 static void bswap_ehdr(struct elfhdr *ehdr) { } in bswap_ehdr() 271 static abi_ulong load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp() 396 static void load_symbols(struct elfhdr *hdr, int fd) in load_symbols() 508 struct elfhdr elf_ex; in is_target_elf_binary() 517 elf_ex = *((struct elfhdr *)buf); in is_target_elf_binary() 529 load_elf_sections(const struct elfhdr *hdr, struct elf_phdr *phdr, int fd, in load_elf_sections() 603 struct elfhdr elf_ex; in load_elf_binary() 604 struct elfhdr interp_elf_ex; in load_elf_binary() [all …]
|
/openbmc/linux/fs/proc/ |
H A D | kcore.c | 128 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size() 348 phdrs_offset = sizeof(struct elfhdr); in read_kcore_iter() 352 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore_iter() 353 struct elfhdr ehdr = { in read_kcore_iter() 367 .e_phoff = sizeof(struct elfhdr), in read_kcore_iter() 369 .e_ehsize = sizeof(struct elfhdr), in read_kcore_iter() 374 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore_iter()
|
/openbmc/linux/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 */
|
/openbmc/linux/fs/ |
H A D | compat_binfmt_elf.c | 28 #undef elfhdr 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() 1375 struct elfhdr elf_ex; in load_elf_library() 1491 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() [all …]
|
H A D | binfmt_elf_fdpic.c | 104 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() 1233 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() 1246 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1249 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1420 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1466 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
|
/openbmc/linux/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()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | fadump.c | 369 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size() 763 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 957 struct elfhdr *elf; in fadump_init_elfcore_header() 959 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 960 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 971 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header() 981 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1071 struct elfhdr *elf; in fadump_create_elfcore_headers() 1075 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1076 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | elf.h | 212 struct elfhdr *__h = (hdr); \ 228 struct elfhdr *__h = (hdr); \
|
/openbmc/qemu/linux-user/ |
H A D | elfload.c | 2123 static void bswap_ehdr(struct elfhdr *ehdr) in bswap_ehdr() 2191 static inline void bswap_ehdr(struct elfhdr *ehdr) { } in bswap_ehdr() 2203 static void load_symbols(struct elfhdr *hdr, const ImageSource *src, 2208 static bool elf_check_ident(struct elfhdr *ehdr) in elf_check_ident() 2221 static bool elf_check_ehdr(struct elfhdr *ehdr) in elf_check_ehdr() 2225 && ehdr->e_ehsize == sizeof(struct elfhdr) in elf_check_ehdr() 2428 static int elf_is_fdpic(struct elfhdr *exec) in elf_is_fdpic() 2433 static int elf_is_fdpic(struct elfhdr *exec) in elf_is_fdpic() 2439 static int elf_is_fdpic(struct elfhdr *exec) in elf_is_fdpic() 2471 struct elfhdr *exec, in create_elf_tables() [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | elf_kexec.c | 36 static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in riscv_kexec_elf_load() 76 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase() 205 struct elfhdr ehdr; in elf_kexec_load()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | elf.h | 283 struct elfhdr *__h = (hdr); \ 311 struct elfhdr *__h = (hdr); \
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | kexec_file.c | 23 struct elfhdr ehdr; in elf_load()
|
/openbmc/qemu/bsd-user/freebsd/ |
H A D | target_os_elf.h | 71 struct elfhdr *exec, in target_create_elf_tables()
|
/openbmc/qemu/bsd-user/openbsd/ |
H A D | target_os_elf.h | 68 struct elfhdr *exec, in target_create_elf_tables()
|
/openbmc/qemu/bsd-user/netbsd/ |
H A D | target_os_elf.h | 68 struct elfhdr *exec, in target_create_elf_tables()
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | elf.h | 208 #define GATE_EHDR ((const struct elfhdr *) GATE_ADDR)
|
/openbmc/linux/arch/powerpc/kexec/ |
H A D | elf_64.c | 37 struct elfhdr ehdr; in elf64_load()
|
/openbmc/qemu/include/hw/ |
H A D | elf_ops.h.inc | 1 static void glue(bswap_ehdr, SZ)(struct elfhdr *ehdr) 107 static void glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd, int must_swab, 201 static int glue(elf_reloc, SZ)(struct elfhdr *ehdr, int fd, int must_swab, 326 struct elfhdr ehdr;
|
/openbmc/qemu/include/ |
H A D | elf.h | 1767 #define elfhdr elf32_hdr macro 1783 #define elfhdr elf64_hdr macro
|
/openbmc/qemu/hw/core/ |
H A D | loader.c | 310 #undef elfhdr 320 #define elfhdr elf64_hdr macro
|