/linux-6.6.21/arch/x86/um/ |
D | elfcore.c | 12 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0; in elf_core_extra_phdrs() 25 for (i = 0; i < ehdrp->e_phnum; ++i) { in elf_core_write_extra_phdrs() 51 for (i = 0; i < ehdrp->e_phnum; ++i) { in elf_core_write_extra_data() 72 for (i = 0; i < ehdrp->e_phnum; ++i) in elf_core_extra_data_size()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | elfcore.c | 12 return GATE_EHDR->e_phnum; in elf_core_extra_phdrs() 22 for (i = 0; i < GATE_EHDR->e_phnum; ++i) { in elf_core_write_extra_phdrs() 50 for (i = 0; i < GATE_EHDR->e_phnum; ++i) { in elf_core_write_extra_data() 70 for (i = 0; i < GATE_EHDR->e_phnum; ++i) { in elf_core_extra_data_size()
|
/linux-6.6.21/kernel/ |
D | kexec_elf.c | 65 if (ehdr->e_phnum > 0 && ehdr->e_phentsize != sizeof(struct elf_phdr)) { in elf_is_ehdr_sane() 78 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_is_ehdr_sane() 85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_is_ehdr_sane() 155 ehdr->e_phnum = elf16_to_cpu(ehdr, buf_ehdr->e_phnum); in elf_read_ehdr() 261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_read_phdrs() 267 for (i = 0; i < ehdr->e_phnum; i++) { in elf_read_phdrs() 308 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { in elf_read_from_buffer() 346 for (i = 0; i < ehdr->e_phnum; i++) { in kexec_build_elf_info() 398 for (i = 0; i < ehdr->e_phnum; i++) { in kexec_elf_load()
|
D | crash_core.c | 376 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 384 (ehdr->e_phnum)++; in crash_prepare_elf64_headers() 394 ehdr->e_phnum++; in crash_prepare_elf64_headers() 411 ehdr->e_phnum++; in crash_prepare_elf64_headers() 414 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
|
/linux-6.6.21/arch/powerpc/boot/ |
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()
|
D | elf.h | 66 Elf32_Half e_phnum; member 83 Elf64_Half e_phnum; member
|
/linux-6.6.21/tools/perf/util/ |
D | symbol-minimal.c | 125 ehdr.e_phnum = bswap_16(ehdr.e_phnum); in filename__read_build_id() 128 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 137 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id() 176 ehdr.e_phnum = bswap_16(ehdr.e_phnum); in filename__read_build_id() 179 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 188 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
|
/linux-6.6.21/arch/s390/kernel/ |
D | kexec_elf.c | 35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in kexec_file_add_kernel_elf() 84 if (!ehdr->e_phnum || ehdr->e_phentsize != sizeof(Elf_Phdr)) in s390_elf_load() 88 size += ehdr->e_phentsize * ehdr->e_phnum; in s390_elf_load() 94 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in s390_elf_load()
|
/linux-6.6.21/fs/proc/ |
D | vmcore.c | 730 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64() 795 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64() 828 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64() 876 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr); in merge_note_headers_elf64() 895 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf64() 921 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32() 986 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf32() 1019 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf32() 1067 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf32_Phdr); in merge_note_headers_elf32() 1086 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf32() [all …]
|
/linux-6.6.21/drivers/soc/qcom/ |
D | mdt_loader.c | 90 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_get_size() 142 if (ehdr->e_phnum < 2) in qcom_mdt_read_metadata() 148 for (i = 1; i < ehdr->e_phnum; i++) { in qcom_mdt_read_metadata() 222 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_pas_init() 277 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_bins_are_split() 319 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load() 346 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load()
|
/linux-6.6.21/lib/ |
D | buildid.c | 77 if (ehdr->e_phnum > in get_build_id_32() 83 for (i = 0; i < ehdr->e_phnum; ++i) { in get_build_id_32() 102 if (ehdr->e_phnum > in get_build_id_64() 108 for (i = 0; i < ehdr->e_phnum; ++i) { in get_build_id_64()
|
/linux-6.6.21/fs/ |
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() 650 NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum); in create_elf_fdpic_tables() 755 for (loop = 0; loop < params->hdr.e_phnum; loop++) in elf_fdpic_map_file() 804 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file() 807 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 832 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file() 936 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_map_file_constdisp_on_uclinux() [all …]
|
D | binfmt_elf.c | 265 NEW_AUX_ENT(AT_PHNUM, exec->e_phnum); in create_elf_tables() 482 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs() 616 interp_elf_ex->e_phnum); in load_elf_interp() 623 for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) { in load_elf_interp() 865 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary() 930 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) in load_elf_binary() 968 for (i = 0; i < interp_elf_ex->e_phnum; i++, elf_ppnt++) in load_elf_binary() 1034 i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary() 1123 alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum); in load_elf_binary() 1158 elf_ex->e_phnum); in load_elf_binary() [all …]
|
/linux-6.6.21/arch/mips/boot/ |
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-6.6.21/arch/parisc/boot/compressed/ |
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-6.6.21/arch/x86/boot/compressed/ |
D | misc.c | 301 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 305 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf() 307 for (i = 0; i < ehdr.e_phnum; i++) { in parse_elf()
|
/linux-6.6.21/arch/alpha/boot/tools/ |
D | objstrip.c | 162 if (elf->e_phnum != 1) { in main() 165 prog_name, elf->e_phnum); in main()
|
/linux-6.6.21/Documentation/userspace-api/ |
D | ELF.rst | 14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
|
/linux-6.6.21/include/uapi/linux/ |
D | elf.h | 220 Elf32_Half e_phnum; member 237 Elf64_Half e_phnum; member
|
/linux-6.6.21/tools/testing/selftests/sgx/ |
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-6.6.21/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 210 FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0); in check_core_file() 216 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | elf.c | 137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load()
|
/linux-6.6.21/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 91 uint16_t e_phnum; member 181 h.e_phnum = 1; in make_exe()
|
/linux-6.6.21/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 58 ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16) in ELF_GEN_FIELD_GET_SET()
|
/linux-6.6.21/arch/sparc/vdso/ |
D | vdso2c.h | 28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()
|