Home
last modified time | relevance | path

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

12

/linux/fs/proc/
H A Dvmcore.c747 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 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()
H A Delf.h66 Elf32_Half e_phnum; member
83 Elf64_Half e_phnum; member
/linux/tools/perf/util/
H A Dsymbol-minimal.c136 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 Dmdt_loader.c38 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 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/
H A Dbinfmt_elf_fdpic.c148 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 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/kernel/
H A Dcrash_core.c219 (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 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/riscv/kernel/
H A Dkexec_elf.c36 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 Dmisc.c302 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 Dobjstrip.c162 if (elf->e_phnum != 1) { in main()
165 prog_name, elf->e_phnum); in main()
/linux/Documentation/userspace-api/
H A DELF.rst14 e_phoff + (e_phnum - 1) * sizeof(Elf_Phdr).
/linux/arch/powerpc/kernel/
H 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/arch/loongarch/kernel/
H A Dkexec_elf.c27 for (i = 0; i < ehdr->e_phnum; i++) { in _elf_kexec_load()
/linux/tools/testing/selftests/sgx/
H 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/lib/
H A Dbuildid.c209 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 Delf.c137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) { in kvm_vm_elf_load()
/linux/arch/s390/tools/
H A Drelocs.c141 ehdr.e_phnum = elf_half_to_cpu(ehdr.e_phnum); in read_ehdr()
/linux/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h58 ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16) in ELF_GEN_FIELD_GET_SET()
/linux/sound/pci/mixart/
H A Dmixart_hwdep.c73 __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 Dvdso2c.h28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()
/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c96 uint16_t e_phnum; member
186 h.e_phnum = 1; in make_exe()
/linux/arch/powerpc/platforms/powernv/
H A Dopal-core.c375 elf->e_phnum = 0; in create_opalcore()
419 elf->e_phnum = cpu_to_be16(count); in create_opalcore()

12