/Linux-v5.10/kernel/ |
D | kexec_elf.c | 78 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_is_ehdr_sane() 88 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) { in elf_is_ehdr_sane() 91 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane() 163 ehdr->e_phoff = elf64_to_cpu(ehdr, buf_ehdr->e_phoff); in elf_read_ehdr() 169 ehdr->e_phoff = elf32_to_cpu(ehdr, buf_ehdr->e_phoff); in elf_read_ehdr() 212 pbuf = buf + elf_info->ehdr->e_phoff + (idx * sizeof(*buf_phdr)); in elf_read_phdr() 308 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_read_from_buffer()
|
/Linux-v5.10/arch/x86/um/ |
D | elfcore.c | 21 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_phdrs() 48 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_write_extra_data() 69 (const struct elf_phdr *) (vsyscall_ehdr + ehdrp->e_phoff); in elf_core_extra_data_size()
|
/Linux-v5.10/arch/ia64/kernel/ |
D | elfcore.c | 18 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_phdrs() 47 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_write_extra_data() 66 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff); in elf_core_extra_data_size()
|
/Linux-v5.10/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 210 FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0); in check_core_file() 219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file() 220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file() 223 for (phdr = p + ehdr->e_phoff; in check_core_file() 224 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file() 229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()
|
/Linux-v5.10/tools/perf/util/ |
D | symbol-minimal.c | 123 ehdr.e_phoff = bswap_32(ehdr.e_phoff); in filename__read_build_id() 133 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id() 174 ehdr.e_phoff = bswap_64(ehdr.e_phoff); in filename__read_build_id() 184 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
|
/Linux-v5.10/arch/s390/kernel/ |
D | kexec_elf.c | 34 phdr = (void *)ehdr + ehdr->e_phoff; in kexec_file_add_kernel_elf() 87 size = ehdr->e_ehsize + ehdr->e_phoff; in s390_elf_load() 92 phdr = (void *)ehdr + ehdr->e_phoff; in s390_elf_load()
|
/Linux-v5.10/arch/powerpc/boot/ |
D | elf_util.c | 36 (unsigned long)elf64->e_phoff); in parse_elf64() 67 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff); in parse_elf32()
|
D | elf.h | 61 Elf32_Off e_phoff; member 78 Elf64_Off e_phoff; /* Program header table file offset */ member
|
/Linux-v5.10/sound/pci/mixart/ |
D | mixart_hwdep.c | 67 __be32 e_phoff; member 100 if( elf_header->e_phoff != 0 ) { in mixart_load_elf() 104 u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize)); in mixart_load_elf()
|
/Linux-v5.10/include/uapi/linux/ |
D | elf.h | 211 Elf32_Off e_phoff; member 228 Elf64_Off e_phoff; /* Program header table file offset */ member
|
/Linux-v5.10/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 60 ELF_GEN_FIELD_GET_SET(hdr, e_phoff, u64)
|
/Linux-v5.10/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 84 uint64_t e_phoff; member 174 h.e_phoff = sizeof(struct elf64_hdr); in make_exe()
|
/Linux-v5.10/tools/testing/selftests/kvm/lib/ |
D | elf.c | 140 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load()
|
/Linux-v5.10/arch/mips/boot/ |
D | elf2ecoff.c | 175 e->e_phoff = swab32(e->e_phoff); in convert_elf_hdr() 329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
|
/Linux-v5.10/arch/sparc/vdso/ |
D | vdso2c.h | 25 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); in BITSFUNC()
|
/Linux-v5.10/arch/alpha/boot/tools/ |
D | objstrip.c | 170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
|
/Linux-v5.10/arch/x86/entry/vdso/ |
D | vdso2c.h | 23 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff)); in BITSFUNC()
|
/Linux-v5.10/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 87 ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff); in vdso_init_from_sysinfo_ehdr()
|
/Linux-v5.10/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 149 phdr_start = spu_elf_start + ehdr.e_phoff; in create_vma_map()
|
/Linux-v5.10/fs/ |
D | binfmt_elf_fdpic.c | 144 loff_t pos = params->hdr.e_phoff; in elf_fdpic_fetch_phdrs() 804 stop = params->hdr.e_phoff; in elf_fdpic_map_file() 812 if (phdr->p_offset > params->hdr.e_phoff || in elf_fdpic_map_file() 824 params->hdr.e_phoff - phdr->p_offset; in elf_fdpic_map_file() 1265 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_fdpic_header()
|
D | binfmt_elf.c | 259 NEW_AUX_ENT(AT_PHDR, load_addr + exec->e_phoff); in create_elf_tables() 482 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs() 1365 retval = elf_read(file, eppnt, j, elf_ex.e_phoff); in load_elf_library() 1466 elf->e_phoff = sizeof(struct elfhdr); in fill_elf_header()
|
/Linux-v5.10/arch/parisc/boot/compressed/ |
D | misc.c | 262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
|
/Linux-v5.10/arch/x86/boot/compressed/ |
D | misc.c | 298 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
|
/Linux-v5.10/arch/mips/boot/tools/ |
D | relocs.c | 228 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
|
/Linux-v5.10/arch/x86/tools/ |
D | relocs.c | 361 ehdr.e_phoff = elf_off_to_cpu(ehdr.e_phoff); in read_ehdr()
|