Home
last modified time | relevance | path

Searched refs:e_phnum (Results 1 – 25 of 49) sorted by relevance

12

/linux/arch/x86/um/
A Delfcore.c13 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0; in elf_core_extra_phdrs()
26 for (i = 0; i < ehdrp->e_phnum; ++i) { in elf_core_write_extra_phdrs()
52 for (i = 0; i < ehdrp->e_phnum; ++i) { in elf_core_write_extra_data()
73 for (i = 0; i < ehdrp->e_phnum; ++i) in elf_core_extra_data_size()
/linux/kernel/
A Dkexec_elf.c65 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()
A Dcrash_core.c213 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
221 (ehdr->e_phnum)++; in crash_prepare_elf64_headers()
231 ehdr->e_phnum++; in crash_prepare_elf64_headers()
248 ehdr->e_phnum++; in crash_prepare_elf64_headers()
252 ehdr->e_phnum, phdr->p_offset); in crash_prepare_elf64_headers()
/linux/arch/powerpc/boot/
A Delf_util.c37 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()
A Delf.h66 Elf32_Half e_phnum; member
83 Elf64_Half e_phnum; member
/linux/tools/perf/util/
A Dsymbol-minimal.c125 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()
177 ehdr.e_phnum = bswap_16(ehdr.e_phnum); in filename__read_build_id()
180 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id()
189 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
/linux/arch/s390/kernel/
A Dkexec_elf.c35 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/proc/
A Dvmcore.c733 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf64()
798 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in get_note_number_and_size_elf64()
831 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in copy_notes_elf64()
898 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf64()
924 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { in update_note_header_size_elf32()
1089 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; in merge_note_headers_elf32()
1233 ehdr.e_phnum == 0) { in parse_crash_elf64_headers()
1240 ehdr.e_phnum * sizeof(Elf64_Phdr); in parse_crash_elf64_headers()
1289 ehdr.e_phnum == 0) { in parse_crash_elf32_headers()
1404 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in vmcoredd_update_program_headers()
[all …]
/linux/drivers/soc/qcom/
A Dmdt_loader.c88 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_get_size()
140 if (ehdr->e_phnum < 2) in qcom_mdt_read_metadata()
146 for (i = 1; i < ehdr->e_phnum; i++) { in qcom_mdt_read_metadata()
220 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_pas_init()
275 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_bins_are_split()
317 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load()
344 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load()
/linux/fs/
A Dbinfmt_elf_fdpic.c151 size = params->hdr.e_phnum * sizeof(struct elf_phdr); in elf_fdpic_fetch_phdrs()
231 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { in load_elf_fdpic_binary()
631 NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum); in create_elf_fdpic_tables()
748 for (loop = 0; loop < params->hdr.e_phnum; loop++) in elf_fdpic_map_file()
797 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); in elf_fdpic_map_file()
1248 elf->e_phnum = segs; in fill_elf_fdpic_header()
1472 Elf_Half e_phnum; in elf_fdpic_core_dump() local
1512 e_phnum = segs > PN_XNUM ? PN_XNUM : segs; in elf_fdpic_core_dump()
1515 fill_elf_fdpic_header(elf, e_phnum); in elf_fdpic_core_dump()
1553 if (e_phnum == PN_XNUM) { in elf_fdpic_core_dump()
[all …]
A Dbinfmt_elf.c246 NEW_AUX_ENT(AT_PHNUM, exec->e_phnum); in create_elf_tables()
654 interp_elf_ex->e_phnum); in load_elf_interp()
1029 i < elf_ex->e_phnum; i++, elf_ppnt++) { in load_elf_binary()
1086 elf_ex->e_phnum); in load_elf_binary()
1384 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; in load_elf_library()
1398 for (j = 0, i = 0; i<elf_ex.e_phnum; i++) in load_elf_library()
1484 elf->e_phnum = segs; in fill_elf_header()
2014 Elf_Half e_phnum; in elf_core_dump() local
2029 e_phnum = segs > PN_XNUM ? PN_XNUM : segs; in elf_core_dump()
2064 if (e_phnum == PN_XNUM) { in elf_core_dump()
[all …]
/linux/arch/mips/boot/
A Delf2ecoff.c180 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/arch/parisc/boot/compressed/
A Dmisc.c258 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/x86/boot/compressed/
A Dmisc.c315 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
319 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
321 for (i = 0; i < ehdr.e_phnum; i++) { in parse_elf()
/linux/arch/alpha/boot/tools/
A Dobjstrip.c162 if (elf->e_phnum != 1) { in main()
165 prog_name, elf->e_phnum); in main()
/linux/Documentation/userspace-api/
A DELF.rst14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
/linux/include/uapi/linux/
A Delf.h220 Elf32_Half e_phnum; member
237 Elf64_Half e_phnum; member
/linux/arch/powerpc/kernel/
A Dfadump.c952 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/lib/
A Dbuildid.c225 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_32()
262 phnum = READ_ONCE(ehdr->e_phnum); in get_build_id_64()
/linux/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c210 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/tools/testing/selftests/sgx/
A Dload.c234 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/tools/testing/selftests/kvm/lib/
A Delf.c137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load()
/linux/drivers/remoteproc/
A Dremoteproc_elf_helpers.h58 ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16) in ELF_GEN_FIELD_GET_SET()
/linux/arch/s390/tools/
A Drelocs.c141 ehdr.e_phnum = elf_half_to_cpu(ehdr.e_phnum); in read_ehdr()
/linux/arch/sparc/vdso/
A Dvdso2c.h28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()

Completed in 55 milliseconds

12