Home
last modified time | relevance | path

Searched refs:e_phoff (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/kernel/
H A Dkexec_elf.c78 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()
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c210 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()
/openbmc/linux/arch/x86/um/
H A Delfcore.c21 (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()
/openbmc/linux/arch/ia64/kernel/
H A Delfcore.c18 (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()
/openbmc/linux/tools/perf/util/
H A Dsymbol-minimal.c123 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()
/openbmc/linux/arch/s390/kernel/
H A Dkexec_elf.c34 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()
/openbmc/linux/Documentation/userspace-api/
H A DELF.rst11 e_phoff.
14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
/openbmc/linux/arch/powerpc/boot/
H A Delf_util.c36 (unsigned long)elf64->e_phoff); in parse_elf64()
67 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff); in parse_elf32()
H A Delf.h61 Elf32_Off e_phoff; member
78 Elf64_Off e_phoff; /* Program header table file offset */ member
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py53 global e_type, e_machine, e_version, e_entry, e_phoff, e_shoff, e_flags,\
68 e_type, e_machine, e_version, e_entry, e_phoff, e_shoff, e_flags,\
80 f.seek(e_phoff + i * e_phentsize)
/openbmc/qemu/contrib/elf2dmp/
H A Dqemu_elf.c27 Elf64_Phdr *phdr = (void *)((uint8_t *)map + ehdr->e_phoff); in elf64_getphdr()
178 uadd64_overflow(phendoff, ehdr->e_phoff, &phendoff) || in check_ehdr()
/openbmc/linux/lib/
H A Dbuildid.c88 if (ehdr->e_phoff != sizeof(Elf32_Ehdr)) in get_build_id_32()
121 if (ehdr->e_phoff != sizeof(Elf64_Ehdr)) in get_build_id_64()
/openbmc/qemu/linux-user/
H A Dgen-vdso-elfn.c.inc16 bswaps(&ehdr->e_phoff); /* Program header table file offset */
96 ElfN(Phdr) *phdr = (void *)ehdr + ehdr->e_phoff;
128 phdr = buf + ehdr->e_phoff;
182 if (first_segsz < ehdr->e_phoff + phnum * sizeof(*phdr)) {
/openbmc/linux/sound/pci/mixart/
H A Dmixart_hwdep.c68 __be32 e_phoff; member
101 if( elf_header->e_phoff != 0 ) { in mixart_load_elf()
105 u32 pos = be32_to_cpu(elf_header->e_phoff) + (u32)(i * be16_to_cpu(elf_header->e_phentsize)); in mixart_load_elf()
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A D32and64bit.patch52 + elf_pheader = (Elf32_Phdr *) (elf_header->e_phoff + file_contents);
245 - elf_pheader = (ElfW(Phdr) *) (elf_header->e_phoff + file_contents);
246 + elf_pheader = (Elf64_Phdr *) (elf_header->e_phoff + file_contents);
H A Dendian-ness_handling.patch59 - elf_pheader = (Elf32_Phdr *) (elf_header->e_phoff + file_contents);
60 + elf_pheader = (Elf32_Phdr *) (read32(elf_header->e_phoff, be) + file_contents);
205 - elf_pheader = (Elf64_Phdr *) (elf_header->e_phoff + file_contents);
206 + elf_pheader = (Elf64_Phdr *) (read64(elf_header->e_phoff, be) + file_contents);
/openbmc/linux/include/uapi/linux/
H A Delf.h215 Elf32_Off e_phoff; member
232 Elf64_Off e_phoff; /* Program header table file offset */ member
/openbmc/qemu/bsd-user/freebsd/
H A Dtarget_os_elf.h107 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables()
/openbmc/qemu/bsd-user/openbsd/
H A Dtarget_os_elf.h119 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables()
/openbmc/qemu/bsd-user/netbsd/
H A Dtarget_os_elf.h119 NEW_AUX_ENT(AT_PHDR, (abi_ulong)(load_addr + exec->e_phoff)); in target_create_elf_tables()
/openbmc/u-boot/include/
H A Delf.h97 Elf32_Off e_phoff; /* program header table offset */ member
115 Elf64_Off e_phoff; /* program header table offset */ member
/openbmc/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c86 uint64_t e_phoff; member
176 h.e_phoff = sizeof(struct elf64_hdr); in make_exe()
/openbmc/u-boot/cmd/
H A Delf.c42 phdr = (Elf64_Phdr *)(addr + (ulong)ehdr->e_phoff); in load_elf64_image_phdr()
157 phdr = (Elf32_Phdr *)(addr + ehdr->e_phoff); in load_elf_image_phdr()
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Delf.c139 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load()
/openbmc/qemu/bsd-user/
H A Delfload.c54 bswaptls(&ehdr->e_phoff); /* Program header table file offset */ in bswap_ehdr()
311 retval = lseek(interpreter_fd, interp_elf_ex->e_phoff, SEEK_SET); in load_elf_interp()
639 retval = lseek(bprm->fd, elf_ex.e_phoff, SEEK_SET); in load_elf_binary()

123