Searched refs:elfhdr (Results 1 – 16 of 16) sorted by relevance
/linux/arch/x86/um/ |
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()
|
/linux/kernel/ |
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() 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/fs/proc/ |
A D | kcore.c | 115 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len + in get_kcore_size() 333 phdrs_offset = sizeof(struct elfhdr); in read_kcore() 337 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore() 338 struct elfhdr ehdr = { in read_kcore() 352 .e_phoff = sizeof(struct elfhdr), in read_kcore() 354 .e_ehsize = sizeof(struct elfhdr), in read_kcore() 359 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
|
/linux/fs/ |
A D | compat_binfmt_elf.c | 28 #undef elfhdr 34 #define elfhdr elf32_hdr macro
|
A D | binfmt_elf.c | 537 static inline int arch_elf_pt_proc(struct elfhdr *ehdr, in arch_elf_pt_proc() 562 struct elfhdr *interp_ehdr, in arch_check_elf() 840 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() 841 struct elfhdr *interp_elf_ex = NULL; in load_elf_binary() 1352 struct elfhdr elf_ex; in load_elf_library() 1468 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() 1482 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header() 1484 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_header() 1801 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() 2030 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() [all …]
|
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() 1237 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() 1250 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1253 elf->e_ehsize = sizeof(struct elfhdr); in fill_elf_fdpic_header() 1424 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1470 struct elfhdr *elf = NULL; in elf_fdpic_core_dump()
|
/linux/include/linux/ |
A D | elf.h | 41 #define elfhdr elf32_hdr macro 53 #define elfhdr elf64_hdr macro
|
A D | kexec.h | 236 const struct elfhdr *ehdr; 240 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, 243 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
|
A D | elf-fdpic.h | 17 struct elfhdr hdr; /* ref copy of ELF header */
|
/linux/arch/alpha/boot/tools/ |
A D | objstrip.c | 31 # define elfhdr elf64_hdr macro 61 struct elfhdr *elf; in main() 149 elf = (struct elfhdr *) buf; in main()
|
/linux/arch/powerpc/kernel/ |
A D | fadump.c | 364 size += sizeof(struct elfhdr); /* ELF core header.*/ in get_fadump_area_size() 759 bufp += sizeof(struct elfhdr); in fadump_update_elfcore_header() 949 struct elfhdr *elf; in fadump_init_elfcore_header() 951 elf = (struct elfhdr *) bufp; in fadump_init_elfcore_header() 952 bufp += sizeof(struct elfhdr); in fadump_init_elfcore_header() 963 elf->e_phoff = sizeof(struct elfhdr); in fadump_init_elfcore_header() 970 elf->e_ehsize = sizeof(struct elfhdr); in fadump_init_elfcore_header() 1060 struct elfhdr *elf; in fadump_create_elfcore_headers() 1064 elf = (struct elfhdr *)bufp; in fadump_create_elfcore_headers() 1065 bufp += sizeof(struct elfhdr); in fadump_create_elfcore_headers()
|
A D | prom_init.c | 1135 Elf32_Ehdr elfhdr; member 1168 .elfhdr = {
|
/linux/arch/mips/include/asm/ |
A D | elf.h | 283 struct elfhdr *__h = (hdr); \ 311 struct elfhdr *__h = (hdr); \
|
/linux/arch/parisc/kernel/ |
A D | kexec_file.c | 23 struct elfhdr ehdr; in elf_load()
|
/linux/arch/ia64/include/asm/ |
A D | elf.h | 208 #define GATE_EHDR ((const struct elfhdr *) GATE_ADDR)
|
/linux/arch/powerpc/kexec/ |
A D | elf_64.c | 37 struct elfhdr ehdr; in elf64_load()
|
Completed in 48 milliseconds