Searched refs:elfhdr (Results 1 – 15 of 15) sorted by relevance
/Linux-v4.19/arch/x86/um/ |
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()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | kexec_elf_64.c | 49 const struct elfhdr *ehdr; 54 static inline bool elf_is_elf_file(const struct elfhdr *ehdr) in elf_is_elf_file() 59 static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value) in elf64_to_cpu() 69 static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value) in elf16_to_cpu() 79 static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value) in elf32_to_cpu() 93 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len) in elf_is_ehdr_sane() 149 static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr) in elf_read_ehdr() 151 struct elfhdr *buf_ehdr; in elf_read_ehdr() 174 buf_ehdr = (struct elfhdr *) buf; in elf_read_ehdr() 255 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdrs() [all …]
|
D | fadump.c | 332 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size() 674 struct elfhdr *elf; in fadump_update_elfcore_header() 677 elf = (struct elfhdr *)bufp; in fadump_update_elfcore_header() 678 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 979 struct elfhdr *elf; in fadump_init_elfcore_header() 981 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 982 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 993 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1000 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1075 struct elfhdr *elf; in fadump_create_elfcore_headers() [all …]
|
D | prom_init.c | 926 Elf32_Ehdr elfhdr; member 959 .elfhdr = {
|
/Linux-v4.19/include/linux/ |
D | elf.h | 27 #define elfhdr elf32_hdr macro 38 #define elfhdr elf64_hdr macro
|
D | elf-fdpic.h | 21 struct elfhdr hdr; /* ref copy of ELF header */
|
/Linux-v4.19/fs/ |
D | compat_binfmt_elf.c | 29 #undef elfhdr 34 #define elfhdr elf32_hdr macro
|
D | binfmt_em86.c | 31 struct elfhdr elf_ex; in load_em86() 34 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
|
D | binfmt_elf.c | 165 create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, in create_elf_tables() 417 static struct elf_phdr *load_elf_phdrs(struct elfhdr *elf_ex, in load_elf_phdrs() 498 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc() 522 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, in arch_check_elf() 523 struct elfhdr *interp_ehdr, in arch_check_elf() 537 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex, in load_elf_interp() 708 struct elfhdr elf_ex; in load_elf_binary() 709 struct elfhdr interp_elf_ex; in load_elf_binary() 721 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary() 1200 struct elfhdr elf_ex; in load_elf_library() [all …]
|
D | binfmt_elf_fdpic.c | 108 static int is_elf(struct elfhdr *hdr, struct file *file) in is_elf() 129 static int is_constdisp(struct elfhdr *hdr) in is_constdisp() 209 exec_params.hdr = *(struct elfhdr *) bprm->buf; in load_elf_fdpic_binary() 289 interp_params.hdr = *((struct elfhdr *) bprm->buf); in load_elf_fdpic_binary() 1294 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() 1307 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1310 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1478 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1560 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
|
/Linux-v4.19/fs/proc/ |
D | kcore.c | 92 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size() 306 phdrs_offset = sizeof(struct elfhdr); in read_kcore() 310 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore() 311 struct elfhdr ehdr = { in read_kcore() 325 .e_phoff = sizeof(struct elfhdr), in read_kcore() 327 .e_ehsize = sizeof(struct elfhdr), in read_kcore() 332 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
|
/Linux-v4.19/arch/alpha/boot/tools/ |
D | objstrip.c | 31 # define elfhdr elf64_hdr macro 61 struct elfhdr *elf; in main() 149 elf = (struct elfhdr *) buf; in main()
|
/Linux-v4.19/arch/ia64/hp/sim/boot/ |
D | bootloader.c | 64 struct elfhdr *elf; in start_bootloader() 114 elf = (struct elfhdr *) mem; in start_bootloader()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | elf.h | 285 struct elfhdr *__h = (hdr); \ 308 struct elfhdr *__h = (hdr); \ 324 struct elfhdr *__h = (hdr); \
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | elf.h | 210 #define GATE_EHDR ((const struct elfhdr *) GATE_ADDR)
|