/kernel/linux/linux-5.10/kernel/ |
H A 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 > in elf_read_from_buffer() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A 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 > in elf_read_from_buffer() [all...] |
/kernel/linux/linux-5.10/arch/x86/um/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/x86/um/ |
H A 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A 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()
|
H A D | elf.h | 61 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 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()
|
H A D | elf.h | 61 Elf32_Off e_phoff; member 78 Elf64_Off e_phoff; /* Program header table file offset */ member
|
/kernel/linux/common_modules/xpm/validator/ |
H A D | elf_code_segment_info.c | 28 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 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()
|
/kernel/linux/linux-6.6/sound/pci/mixart/ |
H A D | mixart_hwdep.c | 68 __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 D | elf.h | 214 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 D | elf.h | 215 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 D | elf.h | 177 Elf32_Off e_phoff; member 193 Elf64_Off e_phoff; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | elf.h | 177 Elf32_Off e_phoff; member 193 Elf64_Off e_phoff; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | elf.h | 163 Elf32_Off e_phoff; member 179 Elf64_Off e_phoff; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | elf.c | 134 * 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()
|