| /linux/fs/proc/ |
| H A D | vmcore.c | 747 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64() 812 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64() 845 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64() 893 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr); in merge_note_headers_elf64() 912 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf64() 938 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32() 1003 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf32() 1036 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf32() 1084 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf32_Phdr); in merge_note_headers_elf32() 1103 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_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 | 136 hdrs.ehdr32.e_phnum = bswap_16(hdrs.ehdr32.e_phnum); in filename__read_build_id() 140 hdrs.ehdr64.e_phnum = bswap_16(hdrs.ehdr64.e_phnum); in filename__read_build_id() 147 phdr_size = elf32 ? sizeof(Elf32_Phdr) * hdrs.ehdr32.e_phnum in filename__read_build_id() 148 : sizeof(Elf64_Phdr) * hdrs.ehdr64.e_phnum; in filename__read_build_id() 162 for (int i = 0; i < (elf32 ? hdrs.ehdr32.e_phnum : hdrs.ehdr64.e_phnum); i++) { in filename__read_build_id()
|
| /linux/drivers/soc/qcom/ |
| H A D | mdt_loader.c | 38 phend = size_add(size_mul(sizeof(struct elf32_phdr), ehdr->e_phnum), ehdr->e_phoff); in mdt_header_valid() 124 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_get_size() 179 if (ehdr->e_phnum < 2) in qcom_mdt_read_metadata() 185 for (i = 1; i < ehdr->e_phnum; i++) { in qcom_mdt_read_metadata() 262 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_pas_init() 317 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_bins_are_split() 374 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_load_no_init() 401 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_load_no_init()
|
| /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() 640 NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum); in create_elf_fdpic_tables() 757 for (loop = 0; loop < params->hdr.e_phnum; loop++) in elf_fdpic_map_file() 806 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file() 809 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 834 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 940 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file_constdisp_on_uclinux() [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 | 219 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 227 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 237 ehdr->e_phnum++; in crash_prepare_elf64_headers() 254 ehdr->e_phnum++; in crash_prepare_elf64_headers() 258 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
|
| /linux/arch/parisc/boot/compressed/ |
| H A D | misc.c | 258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 264 for (i = 0; i < ehdr.e_phnum; i++) { in parse_elf()
|
| /linux/arch/riscv/kernel/ |
| H A D | kexec_elf.c | 36 for (i = 0; i < ehdr->e_phnum; i++) { in riscv_kexec_elf_load() 74 for (i = 0; i < ehdr->e_phnum; i++) { in elf_find_pbase()
|
| /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/Documentation/userspace-api/ |
| H A D | ELF.rst | 14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
|
| /linux/arch/powerpc/kernel/ |
| H A D | fadump.c | 952 elf->e_phnum = 0; in fadump_init_elfcore_header() 1034 (elf->e_phnum)++; in fadump_populate_elfcorehdr() 1046 (elf->e_phnum)++; in fadump_populate_elfcorehdr() 1060 (elf->e_phnum)++; in fadump_populate_elfcorehdr() 1084 (elf->e_phnum)++; in fadump_populate_elfcorehdr() 1099 (elf->e_phnum)++; in fadump_populate_elfcorehdr()
|
| /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 | 209 phnum = READ_ONCE(ehdr->e_phnum); in parse_build_id() 246 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_32()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load()
|
| /linux/arch/s390/tools/ |
| H A D | relocs.c | 141 ehdr.e_phnum = elf_half_to_cpu(ehdr.e_phnum); in read_ehdr()
|
| /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/arch/sparc/vdso/ |
| H A D | vdso2c.h | 28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pid-vm.c | 96 uint16_t e_phnum; member 186 h.e_phnum = 1; in make_exe()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-core.c | 375 elf->e_phnum = 0; in create_opalcore() 419 elf->e_phnum = cpu_to_be16(count); in create_opalcore()
|