Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
283 if (!phdrs[i].p_filesz) in qcom_mdt_bins_are_split()
287 seg_end = phdrs[i].p_offset + phdrs[i].p_filesz; in qcom_mdt_bins_are_split()
359 if (phdr->p_filesz > phdr->p_memsz) { in __qcom_mdt_load()
369 if (phdr->p_filesz && !is_split) { in __qcom_mdt_load()
371 if (phdr->p_offset + phdr->p_filesz > fw->size) { in __qcom_mdt_load()
[all …]
/linux-6.6.21/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.6.21/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()
812 phdr->p_offset + phdr->p_filesz < stop) in elf_fdpic_map_file()
818 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file()
966 phdr->p_filesz); in elf_fdpic_map_file_constdisp_on_uclinux()
975 if (phdr->p_filesz < phdr->p_memsz) { in elf_fdpic_map_file_constdisp_on_uclinux()
[all …]
Dbinfmt_elf.c375 unsigned long size = eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map()
657 eppnt->p_filesz > eppnt->p_memsz || in load_elf_interp()
668 k = load_addr + eppnt->p_vaddr + eppnt->p_filesz; in load_elf_interp()
788 if (phdr->p_filesz > sizeof(note)) in parse_elf_properties()
792 n = kernel_read(f, &note, phdr->p_filesz, &pos); in parse_elf_properties()
881 if (elf_ppnt->p_filesz > PATH_MAX || elf_ppnt->p_filesz < 2) in load_elf_binary()
885 elf_interpreter = kmalloc(elf_ppnt->p_filesz, GFP_KERNEL); in load_elf_binary()
889 retval = elf_read(bprm->file, elf_interpreter, elf_ppnt->p_filesz, in load_elf_binary()
895 if (elf_interpreter[elf_ppnt->p_filesz - 1] != '\0') in load_elf_binary()
1187 elf_ex->e_phoff < elf_ppnt->p_offset + elf_ppnt->p_filesz) { in load_elf_binary()
[all …]
/linux-6.6.21/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()
Dcrash_core.c375 phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); in crash_prepare_elf64_headers()
383 phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; in crash_prepare_elf64_headers()
392 phdr->p_filesz = phdr->p_memsz = _end - _text; in crash_prepare_elf64_headers()
409 phdr->p_filesz = phdr->p_memsz = mend - mstart + 1; in crash_prepare_elf64_headers()
413 phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, in crash_prepare_elf64_headers()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/tools/testing/selftests/kvm/lib/
Delf.c181 if (phdr.p_filesz) { in kvm_vm_elf_load()
191 phdr.p_filesz); in kvm_vm_elf_load()
/linux-6.6.21/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.6.21/lib/
Dbuildid.c87 phdr[i].p_filesz)) in get_build_id_32()
112 phdr[i].p_filesz)) in get_build_id_64()
/linux-6.6.21/drivers/media/platform/st/sti/c8sectpfe/
Dc8sectpfe-core.c1018 seg_num, phdr->p_paddr, phdr->p_filesz, dest, in load_imem_segment()
1021 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment()
1047 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment()
1051 phdr->p_filesz); in load_dmem_segment()
1053 memset((void __force *)dst + phdr->p_filesz, 0, in load_dmem_segment()
1054 phdr->p_memsz - phdr->p_filesz); in load_dmem_segment()
1080 if (phdr->p_offset + phdr->p_filesz > fw->size) { in load_slim_core_fw()
/linux-6.6.21/arch/mips/kernel/
Delf.c109 if (phdr32->p_filesz < sizeof(abiflags)) in arch_elf_pt_proc()
115 if (phdr64->p_filesz < sizeof(abiflags)) in arch_elf_pt_proc()
Dvpe.c704 phdr->p_filesz); in vpe_elfload()
705 memset((void *)phdr->p_paddr + phdr->p_filesz, in vpe_elfload()
706 0, phdr->p_memsz - phdr->p_filesz); in vpe_elfload()
/linux-6.6.21/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.6.21/include/uapi/linux/
Delf.h254 Elf32_Word p_filesz; member
266 Elf64_Xword p_filesz; /* Segment size in file */ member
/linux-6.6.21/drivers/remoteproc/
Dqcom_q6v5_mss.c1431 if (phdr->p_filesz > phdr->p_memsz) { in q6v5_mpss_load()
1447 if (phdr->p_filesz && phdr->p_offset < fw->size) { in q6v5_mpss_load()
1449 if (phdr->p_offset + phdr->p_filesz > fw->size) { in q6v5_mpss_load()
1458 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in q6v5_mpss_load()
1459 } else if (phdr->p_filesz) { in q6v5_mpss_load()
1463 ptr, phdr->p_filesz); in q6v5_mpss_load()
1470 if (seg_fw->size != phdr->p_filesz) { in q6v5_mpss_load()
1483 if (phdr->p_memsz > phdr->p_filesz) { in q6v5_mpss_load()
1484 memset(ptr + phdr->p_filesz, 0, in q6v5_mpss_load()
1485 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.6.21/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.6.21/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