Home
last modified time | relevance | path

Searched refs:p_filesz (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.1.9/drivers/soc/qcom/
Dmdt_loader.c52 ptr, phdr->p_filesz); in mdt_load_split_segment()
59 if (seg_fw->size != phdr->p_filesz) { in mdt_load_split_segment()
160 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
161 hash_size = phdrs[hash_segment].p_filesz; in qcom_mdt_read_metadata()
172 hash_offset = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
323 if (phdr->p_filesz > phdr->p_memsz) { in __qcom_mdt_load()
333 if (phdr->p_filesz && phdr->p_offset < fw->size && in __qcom_mdt_load()
334 phdr->p_offset + phdr->p_filesz <= fw->size) { in __qcom_mdt_load()
336 if (phdr->p_offset + phdr->p_filesz > fw->size) { in __qcom_mdt_load()
343 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in __qcom_mdt_load()
[all …]
/linux-6.1.9/arch/x86/um/
Delfcore.c30 offset += phdr.p_filesz; in elf_core_write_extra_phdrs()
54 size_t filesz = phdrp[i].p_filesz; in elf_core_write_extra_data()
74 return (size_t) phdrp[i].p_filesz; in elf_core_extra_data_size()
/linux-6.1.9/fs/
Dbinfmt_elf_fdpic.c235 if (phdr->p_filesz > PATH_MAX) in load_elf_fdpic_binary()
238 if (phdr->p_filesz < 2) in load_elf_fdpic_binary()
242 interpreter_name = kmalloc(phdr->p_filesz, GFP_KERNEL); in load_elf_fdpic_binary()
248 phdr->p_filesz, &pos); in load_elf_fdpic_binary()
249 if (unlikely(retval != phdr->p_filesz)) { in load_elf_fdpic_binary()
256 if (interpreter_name[phdr->p_filesz - 1] != '\0') in load_elf_fdpic_binary()
817 phdr->p_offset + phdr->p_filesz < stop) in elf_fdpic_map_file()
823 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file()
971 phdr->p_filesz); in elf_fdpic_map_file_constdisp_on_uclinux()
980 if (phdr->p_filesz < phdr->p_memsz) { in elf_fdpic_map_file_constdisp_on_uclinux()
[all …]
Dbinfmt_elf.c370 unsigned long size = eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map()
658 eppnt->p_filesz > eppnt->p_memsz || in load_elf_interp()
669 k = load_addr + eppnt->p_vaddr + eppnt->p_filesz; in load_elf_interp()
789 if (phdr->p_filesz > sizeof(note)) in parse_elf_properties()
793 n = kernel_read(f, &note, phdr->p_filesz, &pos); in parse_elf_properties()
882 if (elf_ppnt->p_filesz > PATH_MAX || elf_ppnt->p_filesz < 2) in load_elf_binary()
886 elf_interpreter = kmalloc(elf_ppnt->p_filesz, GFP_KERNEL); in load_elf_binary()
890 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary()
896 if (elf_interpreter[elf_ppnt->p_filesz - 1] != '\0') in load_elf_binary()
1188 elf_ex->e_phoff < elf_ppnt->p_offset + elf_ppnt->p_filesz) { in load_elf_binary()
[all …]
/linux-6.1.9/kernel/
Dkexec_elf.c188 if (phdr->p_offset + phdr->p_filesz < phdr->p_offset) { in elf_is_phdr_sane()
191 } else if (phdr->p_offset + phdr->p_filesz > buf_len) { in elf_is_phdr_sane()
223 phdr->p_filesz = elf64_to_cpu(ehdr, buf_phdr->p_filesz); in elf_read_phdr()
232 phdr->p_filesz = elf32_to_cpu(ehdr, buf_phdr->p_filesz); in elf_read_phdr()
407 size = phdr->p_filesz; in kexec_elf_load()
Dkexec_file.c1272 phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); in crash_prepare_elf64_headers()
1280 phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; in crash_prepare_elf64_headers()
1289 phdr->p_filesz = phdr->p_memsz = _end - _text; in crash_prepare_elf64_headers()
1306 phdr->p_filesz = phdr->p_memsz = mend - mstart + 1; in crash_prepare_elf64_headers()
1310 phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, in crash_prepare_elf64_headers()
/linux-6.1.9/tools/perf/util/
Dsymbol-minimal.c144 phdr->p_filesz = bswap_32(phdr->p_filesz); in filename__read_build_id()
150 buf_size = phdr->p_filesz; in filename__read_build_id()
195 phdr->p_filesz = bswap_64(phdr->p_filesz); in filename__read_build_id()
201 buf_size = phdr->p_filesz; in filename__read_build_id()
/linux-6.1.9/arch/mips/boot/
Delf2ecoff.c195 p->p_filesz = swab32(p->p_filesz); in convert_elf_phdrs()
365 ndata.len = ph[i].p_filesz; in main()
366 nbss.vaddr = ph[i].p_vaddr + ph[i].p_filesz; in main()
367 nbss.len = ph[i].p_memsz - ph[i].p_filesz; in main()
375 ntxt.len = ph[i].p_filesz; in main()
567 if (ph[i].p_type == PT_LOAD && ph[i].p_filesz) { in main()
597 ph[i].p_filesz); in main()
599 ph[i].p_filesz); in main()
600 cur_vma = ph[i].p_vaddr + ph[i].p_filesz; in main()
/linux-6.1.9/arch/ia64/kernel/
Delfcore.c27 phdr.p_filesz = phdr.p_memsz; in elf_core_write_extra_phdrs()
30 offset += phdr.p_filesz; in elf_core_write_extra_phdrs()
/linux-6.1.9/arch/powerpc/boot/
Delf_util.c43 info->loadsize = (unsigned long)elf64ph->p_filesz; in parse_elf64()
74 info->loadsize = elf32ph->p_filesz; in parse_elf32()
Delf.h100 Elf32_Word p_filesz; member
112 Elf64_Xword p_filesz; /* Segment size in file */ member
/linux-6.1.9/arch/arm64/kernel/
Delfcore.c102 phdr.p_filesz = mte_vma_tag_dump_size(m); in elf_core_write_extra_phdrs()
104 offset += phdr.p_filesz; in elf_core_write_extra_phdrs()
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Delf.c179 if (phdr.p_filesz) { in kvm_vm_elf_load()
189 phdr.p_filesz); in kvm_vm_elf_load()
/linux-6.1.9/arch/s390/kernel/
Dkexec_elf.c40 buf.bufsz = phdr->p_filesz; in kexec_file_add_kernel_elf()
101 size += ALIGN(phdr->p_filesz, phdr->p_align); in s390_elf_load()
Dcrash_dump.c507 phdr->p_filesz = end - start; in loads_init()
539 phdr->p_filesz = (unsigned long) PTR_SUB(ptr, ptr_start); in notes_init()
540 phdr->p_memsz = phdr->p_filesz; in notes_init()
/linux-6.1.9/lib/
Dbuildid.c87 phdr[i].p_filesz)) in get_build_id_32()
112 phdr[i].p_filesz)) in get_build_id_64()
/linux-6.1.9/drivers/media/platform/st/sti/c8sectpfe/
Dc8sectpfe-core.c1023 seg_num, phdr->p_paddr, phdr->p_filesz, dest, in load_imem_segment()
1026 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment()
1052 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment()
1056 phdr->p_filesz); in load_dmem_segment()
1058 memset((void __force *)dst + phdr->p_filesz, 0, in load_dmem_segment()
1059 phdr->p_memsz - phdr->p_filesz); in load_dmem_segment()
1085 if (phdr->p_offset + phdr->p_filesz > fw->size) { in load_slim_core_fw()
/linux-6.1.9/arch/mips/kernel/
Delf.c108 if (phdr32->p_filesz < sizeof(abiflags)) in arch_elf_pt_proc()
114 if (phdr64->p_filesz < sizeof(abiflags)) in arch_elf_pt_proc()
Dvpe.c705 phdr->p_filesz); in vpe_elfload()
706 memset((void *)phdr->p_paddr + phdr->p_filesz, in vpe_elfload()
707 0, phdr->p_memsz - phdr->p_filesz); in vpe_elfload()
/linux-6.1.9/sound/pci/mixart/
Dmixart_hwdep.c84 __be32 p_filesz; member
110 if( elf_programheader.p_filesz != 0 ) { in mixart_load_elf()
113 be32_to_cpu( elf_programheader.p_filesz )); in mixart_load_elf()
/linux-6.1.9/include/uapi/linux/
Delf.h254 Elf32_Word p_filesz; member
266 Elf64_Xword p_filesz; /* Segment size in file */ member
/linux-6.1.9/drivers/remoteproc/
Dqcom_q6v5_mss.c1379 if (phdr->p_filesz > phdr->p_memsz) { in q6v5_mpss_load()
1395 if (phdr->p_filesz && phdr->p_offset < fw->size) { in q6v5_mpss_load()
1397 if (phdr->p_offset + phdr->p_filesz > fw->size) { in q6v5_mpss_load()
1406 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in q6v5_mpss_load()
1407 } else if (phdr->p_filesz) { in q6v5_mpss_load()
1411 ptr, phdr->p_filesz); in q6v5_mpss_load()
1418 if (seg_fw->size != phdr->p_filesz) { in q6v5_mpss_load()
1431 if (phdr->p_memsz > phdr->p_filesz) { in q6v5_mpss_load()
1432 memset(ptr + phdr->p_filesz, 0, in q6v5_mpss_load()
1433 phdr->p_memsz - phdr->p_filesz); in q6v5_mpss_load()
Dremoteproc_elf_helpers.h72 ELF_GEN_FIELD_GET_SET(phdr, p_filesz, u64) in ELF_GEN_FIELD_GET_SET()
/linux-6.1.9/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c233 (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; in check_core_file()
238 FAIL_IF((void *) nhdr >= p + phdr->p_offset + phdr->p_filesz); in check_core_file()
/linux-6.1.9/tools/testing/selftests/proc/
Dproc-pid-vm.c103 uint64_t p_filesz; member
192 ph.p_filesz = sizeof(struct elf64_hdr) + sizeof(struct elf64_phdr) + len; in make_exe()

12