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

/linux-master/arch/x86/um/
H A Delfcore.c13 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0;
19 const struct elfhdr *const ehdrp =
20 (struct elfhdr *) vsyscall_ehdr;
46 const struct elfhdr *const ehdrp =
47 (struct elfhdr *) vsyscall_ehdr;
67 const struct elfhdr *const ehdrp =
68 (struct elfhdr *)vsyscall_ehdr;
/linux-master/kernel/
H A Dkexec_elf.c24 static inline bool elf_is_elf_file(const struct elfhdr *ehdr)
29 static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value)
39 static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value)
49 static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value)
63 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len)
119 static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr)
121 struct elfhdr *buf_ehdr;
144 buf_ehdr = (struct elfhdr *) buf;
208 const struct elfhdr *ehdr = elf_info->ehdr;
255 const struct elfhdr *ehd
[all...]
/linux-master/include/linux/
H A Delf-fdpic.h29 struct elfhdr hdr; /* ref copy of ELF header */
H A Delf.h41 #define elfhdr elf32_hdr macro
53 #define elfhdr elf64_hdr macro
H A Dkexec.h279 const struct elfhdr *ehdr;
283 int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
286 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
/linux-master/fs/
H A Dcompat_binfmt_elf.c28 #undef elfhdr macro
34 #define elfhdr elf32_hdr macro
H A Dbinfmt_elf.c156 create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
506 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex,
577 static inline int arch_elf_pt_proc(struct elfhdr *ehdr,
601 static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp,
602 struct elfhdr *interp_ehdr,
631 static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
835 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf;
836 struct elfhdr *interp_elf_ex = NULL;
1327 struct elfhdr elf_e
[all...]
H A Dbinfmt_elf_fdpic.c104 static int is_elf(struct elfhdr *hdr, struct file *file)
125 static int is_constdisp(struct elfhdr *hdr)
205 exec_params.hdr = *(struct elfhdr *) bprm->buf;
285 interp_params.hdr = *((struct elfhdr *) bprm->buf);
889 kdebug("- elfhdr : %lx", params->elfhdr_addr);
1230 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs)
1243 elf->e_phoff = sizeof(struct elfhdr);
1246 elf->e_ehsize = sizeof(struct elfhdr);
1417 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
1463 struct elfhdr *el
[all...]
/linux-master/arch/alpha/boot/tools/
H A Dobjstrip.c31 # define elfhdr elf64_hdr macro
61 struct elfhdr *elf;
149 elf = (struct elfhdr *) buf;
/linux-master/fs/proc/
H A Dkcore.c114 *data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + *phdrs_len +
334 phdrs_offset = sizeof(struct elfhdr);
338 if (buflen && *fpos < sizeof(struct elfhdr)) {
339 struct elfhdr ehdr = {
353 .e_phoff = sizeof(struct elfhdr),
355 .e_ehsize = sizeof(struct elfhdr),
360 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos);
/linux-master/arch/parisc/kernel/
H A Dkexec_file.c23 struct elfhdr ehdr;
/linux-master/arch/loongarch/include/asm/
H A Delf.h212 struct elfhdr *__h = (hdr); \
228 struct elfhdr *__h = (hdr); \
/linux-master/arch/powerpc/kernel/
H A Dfadump.c762 bufp += sizeof(struct elfhdr);
926 struct elfhdr *elf;
928 elf = (struct elfhdr *) bufp;
929 bufp += sizeof(struct elfhdr);
940 elf->e_phoff = sizeof(struct elfhdr);
950 elf->e_ehsize = sizeof(struct elfhdr);
1006 struct elfhdr *elf;
1013 elf = (struct elfhdr *)bufp;
1014 bufp += sizeof(struct elfhdr);
1654 elfcorehdr_size = sizeof(struct elfhdr)
[all...]
H A Dprom_init.c1139 Elf32_Ehdr elfhdr; member in struct:fake_elf
1172 .elfhdr = {
/linux-master/arch/riscv/kernel/
H A Delf_kexec.c37 static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
77 struct elfhdr *ehdr, struct kexec_elf_info *elf_info,
207 struct elfhdr ehdr;
/linux-master/arch/powerpc/kexec/
H A Delf_64.c37 struct elfhdr ehdr;
H A Dcrash.c416 return sizeof(struct elfhdr) + (phdr_cnt * sizeof(Elf64_Phdr));
/linux-master/arch/mips/include/asm/
H A Delf.h283 struct elfhdr *__h = (hdr); \
311 struct elfhdr *__h = (hdr); \

Completed in 323 milliseconds