Home
last modified time | relevance | path

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

12

/linux/drivers/soc/qcom/
A Dmdt_loader.c107 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
108 hash_size = phdrs[1].p_filesz; in qcom_mdt_read_metadata()
116 hash_offset = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
239 if (phdr->p_filesz > phdr->p_memsz) { in __qcom_mdt_load()
249 if (phdr->p_filesz && phdr->p_offset < fw->size) { in __qcom_mdt_load()
251 if (phdr->p_offset + phdr->p_filesz > fw->size) { in __qcom_mdt_load()
259 } else if (phdr->p_filesz) { in __qcom_mdt_load()
263 ptr, phdr->p_filesz); in __qcom_mdt_load()
270 if (seg_fw->size != phdr->p_filesz) { in __qcom_mdt_load()
282 if (phdr->p_memsz > phdr->p_filesz) in __qcom_mdt_load()
[all …]
/linux/fs/
A 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()
248 phdr->p_filesz, &pos); in load_elf_fdpic_binary()
249 if (unlikely(retval != phdr->p_filesz)) { in load_elf_fdpic_binary()
822 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file()
970 phdr->p_filesz); in elf_fdpic_map_file_constdisp_on_uclinux()
979 if (phdr->p_filesz < phdr->p_memsz) { in elf_fdpic_map_file_constdisp_on_uclinux()
1036 (unsigned long) phdr->p_filesz, in elf_fdpic_map_file_by_direct_mmap()
1268 phdr->p_filesz = sz; in fill_elf_note_phdr()
1592 phdr.p_filesz = meta->dump_size; in elf_fdpic_core_dump()
[all …]
A Dbinfmt_elf.c657 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()
1191 k = elf_ppnt->p_vaddr + elf_ppnt->p_filesz; in load_elf_binary()
1397 (eppnt->p_filesz + in load_elf_library()
1406 elf_bss = eppnt->p_vaddr + eppnt->p_filesz; in load_elf_library()
1495 phdr->p_filesz = sz; in fill_elf_note_phdr()
2257 phdr.p_filesz = meta->dump_size; in elf_core_dump()
[all …]
/linux/arch/x86/um/
A 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/kernel/
A 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()
A Dkexec_file.c1314 phdr->p_filesz = phdr->p_memsz = sizeof(note_buf_t); in crash_prepare_elf64_headers()
1322 phdr->p_filesz = phdr->p_memsz = VMCOREINFO_NOTE_SIZE; in crash_prepare_elf64_headers()
1331 phdr->p_filesz = phdr->p_memsz = _end - _text; in crash_prepare_elf64_headers()
1348 phdr->p_filesz = phdr->p_memsz = mend - mstart + 1; in crash_prepare_elf64_headers()
1352 phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, in crash_prepare_elf64_headers()
/linux/arch/mips/boot/
A 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/tools/perf/util/
A 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/arch/ia64/kernel/
A 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/arch/powerpc/boot/
A Delf_util.c43 info->loadsize = (unsigned long)elf64ph->p_filesz; in parse_elf64()
74 info->loadsize = elf32ph->p_filesz; in parse_elf32()
A Delf.h100 Elf32_Word p_filesz; member
112 Elf64_Xword p_filesz; /* Segment size in file */ member
/linux/tools/testing/selftests/kvm/lib/
A Delf.c180 if (phdr.p_filesz) { in kvm_vm_elf_load()
190 phdr.p_filesz); in kvm_vm_elf_load()
/linux/arch/s390/kernel/
A 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()
A Dcrash_dump.c566 phdr->p_filesz = end - start; in loads_init()
598 phdr->p_filesz = (unsigned long) PTR_SUB(ptr, ptr_start); in notes_init()
599 phdr->p_memsz = phdr->p_filesz; in notes_init()
/linux/lib/
A Dbuildid.c87 phdr[i].p_filesz)) in get_build_id_32()
112 phdr[i].p_filesz)) in get_build_id_64()
/linux/drivers/media/platform/sti/c8sectpfe/
A Dc8sectpfe-core.c1037 seg_num, phdr->p_paddr, phdr->p_filesz, dest, in load_imem_segment()
1040 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment()
1066 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment()
1070 phdr->p_filesz); in load_dmem_segment()
1072 memset((void __force *)dst + phdr->p_filesz, 0, in load_dmem_segment()
1073 phdr->p_memsz - phdr->p_filesz); in load_dmem_segment()
1099 if (phdr->p_offset + phdr->p_filesz > fw->size) { in load_slim_core_fw()
/linux/arch/mips/kernel/
A 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()
A 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/sound/pci/mixart/
A 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/include/uapi/linux/
A Delf.h250 Elf32_Word p_filesz; member
262 Elf64_Xword p_filesz; /* Segment size in file */ member
/linux/drivers/remoteproc/
A Dqcom_q6v5_mss.c1348 if (phdr->p_filesz > phdr->p_memsz) { in q6v5_mpss_load()
1364 if (phdr->p_filesz && phdr->p_offset < fw->size) { in q6v5_mpss_load()
1366 if (phdr->p_offset + phdr->p_filesz > fw->size) { in q6v5_mpss_load()
1375 memcpy(ptr, fw->data + phdr->p_offset, phdr->p_filesz); in q6v5_mpss_load()
1376 } else if (phdr->p_filesz) { in q6v5_mpss_load()
1380 ptr, phdr->p_filesz); in q6v5_mpss_load()
1387 if (seg_fw->size != phdr->p_filesz) { in q6v5_mpss_load()
1400 if (phdr->p_memsz > phdr->p_filesz) { in q6v5_mpss_load()
1401 memset(ptr + phdr->p_filesz, 0, in q6v5_mpss_load()
1402 phdr->p_memsz - phdr->p_filesz); in q6v5_mpss_load()
A Dremoteproc_elf_helpers.h72 ELF_GEN_FIELD_GET_SET(phdr, p_filesz, u64) in ELF_GEN_FIELD_GET_SET()
/linux/tools/testing/selftests/powerpc/ptrace/
A 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/tools/testing/selftests/proc/
A Dproc-pid-vm.c101 uint64_t p_filesz; member
190 ph.p_filesz = sizeof(struct elf64_hdr) + sizeof(struct elf64_phdr) + len; in make_exe()
/linux/arch/powerpc/kernel/
A Dfadump.c767 phdr->p_filesz = fw_dump.cpu_notes_buf_size; in fadump_update_elfcore_header()
1083 phdr->p_filesz = 0; in fadump_create_elfcore_headers()
1098 phdr->p_memsz = phdr->p_filesz = VMCOREINFO_NOTE_SIZE; in fadump_create_elfcore_headers()
1136 phdr->p_filesz = msize; in fadump_create_elfcore_headers()

Completed in 45 milliseconds

12