Home
last modified time | relevance | path

Searched refs:e_phoff (Results 1 - 25 of 83) sorted by relevance

1234

/kernel/linux/linux-5.10/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 > in elf_read_from_buffer()
[all...]
/kernel/linux/linux-6.6/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 > in elf_read_from_buffer()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/common_modules/xpm/validator/
H A Delf_code_segment_info.c28 uintptr_t e_phoff; member
192 e32_phoff = elf32_get_value(elf_ehdr, elf32_ehdr->e_phoff); in get_elf32_info()
197 elf_info->e_phoff = e32_phoff; in get_elf32_info()
219 e64_phoff = elf64_get_value(elf_ehdr, elf64_ehdr->e_phoff); in get_elf64_info()
224 elf_info->e_phoff = e64_phoff; in get_elf64_info()
344 ret = read_elf_info(file, (void *)phdr_info, elf_info.e_phsize, elf_info.e_phoff); in parse_elf_code_segment_info()
/kernel/linux/linux-5.10/sound/pci/mixart/
H A Dmixart_hwdep.c67 __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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Delf.h214 Elf32_Off e_phoff; member
231 Elf64_Off e_phoff; /* Program header table file offset */ member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Delf.h215 Elf32_Off e_phoff; member
232 Elf64_Off e_phoff; /* Program header table file offset */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Delf.h177 Elf32_Off e_phoff; member
193 Elf64_Off e_phoff; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Delf.h177 Elf32_Off e_phoff; member
193 Elf64_Off e_phoff; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Delf.h163 Elf32_Off e_phoff; member
179 Elf64_Off e_phoff; member
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
H A Delf.c134 * e_phoff - File offset to start of program headers in kvm_vm_elf_load()
140 offset = hdr.e_phoff + (n1 * hdr.e_phentsize); in kvm_vm_elf_load()

Completed in 16 milliseconds

1234