| /linux/fs/proc/ |
| H A D | vmcore.c | 748 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64() 813 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64() 846 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64() 894 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr); in merge_note_headers_elf64() 912 /* Modify e_phnum to reflect merged headers. */ in merge_note_headers_elf64() 913 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf64() 939 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32() 1004 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf32() 1037 for (i = 0; i < ehdr_ptr->e_phnum; in copy_notes_elf32() [all...] |
| /linux/arch/powerpc/boot/ |
| H A D | elf_util.c | 37 for (i = 0; i < (unsigned int)elf64->e_phnum; i++, elf64ph++) in parse_elf64() 40 if (i >= (unsigned int)elf64->e_phnum) in parse_elf64() 68 for (i = 0; i < elf32->e_phnum; i++, elf32ph++) in parse_elf32() 71 if (i >= elf32->e_phnum) in parse_elf32()
|
| H A D | elf.h | 66 Elf32_Half e_phnum; member 83 Elf64_Half e_phnum; member
|
| /linux/tools/perf/util/ |
| H A D | symbol-minimal.c | 145 hdrs.ehdr32.e_phnum = bswap_16(hdrs.ehdr32.e_phnum); in filename__read_build_id() 149 hdrs.ehdr64.e_phnum = bswap_16(hdrs.ehdr64.e_phnum); in filename__read_build_id() 156 phdr_size = elf32 ? sizeof(Elf32_Phdr) * hdrs.ehdr32.e_phnum in filename__read_build_id() 157 : sizeof(Elf64_Phdr) * hdrs.ehdr64.e_phnum; in filename__read_build_id() 171 for (int i = 0; i < (elf32 ? hdrs.ehdr32.e_phnum : hdrs.ehdr64.e_phnum); i++) { in filename__read_build_id()
|
| /linux/arch/s390/kernel/ |
| H A D | kexec_elf.c | 35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in kexec_file_add_kernel_elf() 86 if (!ehdr->e_phnum || ehdr->e_phentsize != sizeof(Elf_Phdr)) in s390_elf_load() 90 size += ehdr->e_phentsize * ehdr->e_phnum; in s390_elf_load() 96 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in s390_elf_load()
|
| /linux/fs/ |
| H A D | binfmt_elf_fdpic.c | 148 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs() 151 size = params->hdr.e_phnum * sizeof(struct elf_phdr); in elf_fdpic_fetch_phdrs() 162 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_fetch_phdrs() 231 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { in load_elf_fdpic_binary() 653 NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum); in create_elf_fdpic_tables() 768 for (loop = 0; loop < params->hdr.e_phnum; loop++) in elf_fdpic_map_file() 817 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file() 820 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 845 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 951 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file_constdisp_on_uclinux() [all …]
|
| H A D | binfmt_elf.c | 254 NEW_AUX_ENT(AT_PHNUM, exec->e_phnum); in create_elf_tables() 533 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs() 665 interp_elf_ex->e_phnum); in load_elf_interp() 672 for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) { in load_elf_interp() 871 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary() 939 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) in load_elf_binary() 977 for (i = 0; i < interp_elf_ex->e_phnum; i++, elf_ppnt++) in load_elf_binary() 1043 i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary() 1100 elf_ex->e_phnum); in load_elf_binary() 1107 alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum); in load_elf_binary() [all …]
|
| /linux/arch/mips/boot/ |
| H A D | elf2ecoff.c | 180 e->e_phnum = swab16(e->e_phnum); in convert_elf_hdr() 330 ex.e_phnum * sizeof(Elf32_Phdr), in main() 333 convert_elf_phdrs(ph, ex.e_phnum); in main() 347 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp); in main() 349 for (i = 0; i < ex.e_phnum; i++) { in main() 388 ex.e_phnum, ph[i].p_type); in main() 564 for (i = 0; i < ex.e_phnum; i++) { in main()
|
| /linux/kernel/ |
| H A D | crash_core.c | 223 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 231 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 241 ehdr->e_phnum++; in crash_prepare_elf64_headers() 258 ehdr->e_phnum++; in crash_prepare_elf64_headers() 262 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
|
| /linux/arch/x86/boot/compressed/ |
| H A D | misc.c | 302 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 306 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 308 for (i = 0; i < ehdr.e_phnum; i++) { in parse_elf()
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 162 if (elf->e_phnum != 1) { in main() 165 prog_name, elf->e_phnum); in main()
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | coredump_test_helpers.c | 509 ehdr->e_phnum == 0 || ehdr->e_phnum == PN_XNUM) { in compact_probe() 515 (size_t)ehdr->e_phnum * ehdr->e_phentsize) in compact_probe() 519 for (i = 0; i < ehdr->e_phnum; i++) { in compact_probe() 698 nr_old = ehdr.e_phnum; in compact_build() 809 ehdr.e_phnum = nr_new; in compact_build() 933 if (!is_core_ehdr(&ehdr) || !ehdr.e_phnum || in ElfW() 939 size = (size_t)ehdr.e_phnum * ehdr.e_phentsize; in ElfW() 952 *nr = ehdr.e_phnum; in ElfW() 2056 if (!eh.e_phnum || eh.e_phentsize != sizeof(*phdr)) in coredump_expected_size() 2059 nphdr = eh.e_phnum; in coredump_expected_size()
|
| /linux/Documentation/userspace-api/ |
| H A D | ELF.rst | 14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | fw.h | 36 __le16 e_phnum; member
|
| H A D | fw.c | 45 ehdr->e_phnum = le16_to_cpu(p->e_phnum); in mm81x_fw_get_header() 133 for (i = 0; i < ehdr.e_phnum; i++) { in mm81x_fw_load_fw()
|
| /linux/arch/loongarch/kernel/ |
| H A D | kexec_elf.c | 27 for (i = 0; i < ehdr->e_phnum; i++) { in _elf_kexec_load()
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 234 for (i = 0; i < ehdr->e_phnum; i++) { in encl_load() 246 for (i = 0, j = 0; i < ehdr->e_phnum; i++) { in encl_load()
|
| /linux/lib/ |
| H A D | buildid.c | 221 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_32() 258 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_64()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 173 * e_phnum - Number of program header entries in kvm_vm_elf_load() 175 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load()
|
| /linux/arch/alpha/boot/compressed/ |
| H A D | misc.c | 158 for (i = 0; i < ehdr.e_phnum; i++) { in relocate_and_jump()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_elf_helpers.h | 58 ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16) in ELF_GEN_FIELD_GET_SET()
|
| /linux/sound/pci/mixart/ |
| H A D | mixart_hwdep.c | 73 __be16 e_phnum; member 104 for( i=0; i < be16_to_cpu(elf_header->e_phnum); i++ ) { in mixart_load_elf()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pid-vm.c | 92 uint16_t e_phnum; 182 h.e_phnum = 1; in make_exe() 96 uint16_t e_phnum; global() member
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | parse_vdso.c | 117 for (i = 0; i < hdr->e_phnum; i++) in vdso_init_from_sysinfo_ehdr()
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 234 ehdr.e_phnum = elf_half_to_cpu(ehdr.e_phnum); in read_ehdr()
|