Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/
H A Ddecode_bl31.py23 e_entry, e_phoff = struct.unpack_from('<2Q', elf, 0x18)
28 offset = e_phoff + e_phentsize * index
/OK3568_Linux_fs/buildroot/package/patchelf/
H A D0010-Fix-endianness-issues-for-powerpc-PIE.patch18 reading the e_phoff in the incorrect endianness
73 - rewriteHeaders(hdr->e_phoff);
74 + rewriteHeaders(rdi(hdr->e_phoff));
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/u-boot/tools/rockchip/
H A Dtrust_merger.h138 uint32_t e_phoff; member
155 uint64_t e_phoff; /* Program header table file offset */ member
/OK3568_Linux_fs/yocto/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)
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/minidump/
H A Delf.h28 return (struct elf_phdr *)((size_t)hdr + (size_t)hdr->e_phoff); in elf_pheader()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/yocto/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);
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Delf.h211 Elf32_Off e_phoff; member
228 Elf64_Off e_phoff; /* Program header table file offset */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Delf.h210 Elf32_Off e_phoff; member
227 Elf64_Off e_phoff; /* Program header table file offset */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Delf.h210 Elf32_Off e_phoff; member
227 Elf64_Off e_phoff; /* Program header table file offset */ member
/OK3568_Linux_fs/kernel/tools/testing/selftests/proc/
H A Dproc-pid-vm.c84 uint64_t e_phoff; member
174 h.e_phoff = sizeof(struct elf64_hdr); in make_exe()
/OK3568_Linux_fs/u-boot/tools/
H A Dmips-relocs.c289 phdr32 = elf + ehdr_field(e_phoff); in main()
290 phdr64 = elf + ehdr_field(e_phoff); in main()
/OK3568_Linux_fs/kernel/arch/mips/boot/
H A Delf2ecoff.c175 e->e_phoff = swab32(e->e_phoff); in convert_elf_hdr()
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/
H A Delf32.h63 Elf32_Off e_phoff; /* Program header file offset. */ member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/
H A Delf32.h63 Elf32_Off e_phoff; /* Program header file offset. */ member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/
H A Delf32.h63 Elf32_Off e_phoff; /* Program header file offset. */ member

123