/linux/arch/ia64/kernel/ |
A D | elfcore.c | 26 phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz); in elf_core_write_extra_phdrs() 27 phdr.p_filesz = phdr.p_memsz; in elf_core_write_extra_phdrs() 53 size_t memsz = PAGE_ALIGN(gate_phdrs[i].p_memsz); in elf_core_write_extra_data() 72 size += PAGE_ALIGN(gate_phdrs[i].p_memsz); in elf_core_extra_data_size()
|
/linux/drivers/soc/qcom/ |
A D | mdt_loader.c | 28 if (!phdr->p_memsz) in mdt_phdr_valid() 61 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_get_size() 62 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in qcom_mdt_get_size() 197 if (phdr->p_paddr + phdr->p_memsz > max_addr) in __qcom_mdt_load() 198 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in __qcom_mdt_load() 233 if (offset < 0 || offset + phdr->p_memsz > mem_size) { in __qcom_mdt_load() 239 if (phdr->p_filesz > phdr->p_memsz) { in __qcom_mdt_load() 282 if (phdr->p_memsz > phdr->p_filesz) in __qcom_mdt_load() 283 memset(ptr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz); in __qcom_mdt_load()
|
/linux/fs/ |
A D | binfmt_elf_fdpic.c | 171 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs() 823 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 855 if (phdr->p_memsz == 0 || in elf_fdpic_map_file() 883 mseg->p_memsz += in elf_fdpic_map_file() 885 (mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 887 mseg->p_memsz += seg->p_memsz; in elf_fdpic_map_file() 967 seg->p_memsz = phdr->p_memsz; in elf_fdpic_map_file_constdisp_on_uclinux() 990 phdr->p_memsz; in elf_fdpic_map_file_constdisp_on_uclinux() 1101 seg->p_memsz = phdr->p_memsz; in elf_fdpic_map_file_by_direct_mmap() 1269 phdr->p_memsz = 0; in fill_elf_note_phdr() [all …]
|
A D | binfmt_elf.c | 416 return cmds[last_idx].p_vaddr + cmds[last_idx].p_memsz - in total_mapping_size() 657 eppnt->p_filesz > eppnt->p_memsz || in load_elf_interp() 658 eppnt->p_memsz > TASK_SIZE || in load_elf_interp() 659 TASK_SIZE - eppnt->p_memsz < k) { in load_elf_interp() 676 k = load_addr + eppnt->p_vaddr + eppnt->p_memsz; in load_elf_interp() 1184 elf_ppnt->p_memsz > TASK_SIZE || in load_elf_binary() 1185 TASK_SIZE - elf_ppnt->p_memsz < k) { in load_elf_binary() 1199 k = elf_ppnt->p_vaddr + elf_ppnt->p_memsz; in load_elf_binary() 1413 bss = ELF_PAGEALIGN(eppnt->p_memsz + eppnt->p_vaddr); in load_elf_library() 1496 phdr->p_memsz = 0; in fill_elf_note_phdr() [all …]
|
/linux/fs/proc/ |
A D | vmcore.c | 758 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf64() 782 phdr_ptr->p_memsz = real_sz; in update_note_header_size_elf64() 822 *sz_ptnote += phdr_ptr->p_memsz; in get_note_number_and_size_elf64() 860 notes_buf += phdr_ptr->p_memsz; in copy_notes_elf64() 923 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf64() 949 max_sz = phdr_ptr->p_memsz; in update_note_header_size_elf32() 973 phdr_ptr->p_memsz = real_sz; in update_note_header_size_elf32() 1013 *sz_ptnote += phdr_ptr->p_memsz; in get_note_number_and_size_elf32() 1051 notes_buf += phdr_ptr->p_memsz; in copy_notes_elf32() 1114 elfnotes_orig_sz = phdr.p_memsz; in merge_note_headers_elf32() [all …]
|
/linux/kernel/ |
A D | kexec_elf.c | 194 } else if (phdr->p_paddr + phdr->p_memsz < phdr->p_paddr) { in elf_is_phdr_sane() 224 phdr->p_memsz = elf64_to_cpu(ehdr, buf_phdr->p_memsz); in elf_read_phdr() 233 phdr->p_memsz = elf32_to_cpu(ehdr, buf_phdr->p_memsz); in elf_read_phdr() 408 if (size > phdr->p_memsz) in kexec_elf_load() 409 size = phdr->p_memsz; in kexec_elf_load() 413 kbuf->memsz = phdr->p_memsz; in kexec_elf_load()
|
A D | kexec_file.c | 1314 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()
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | elf.c | 156 TEST_ASSERT(phdr.p_memsz > 0, "Unexpected loadable segment " in kvm_vm_elf_load() 159 n1, (uint64_t) phdr.p_memsz); in kvm_vm_elf_load() 161 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
|
/linux/arch/sparc/vdso/ |
A D | vdso2c.h | 37 if (GET_BE(&pt[i].p_memsz) != GET_BE(&pt[i].p_filesz)) in BITSFUNC() 40 load_size = GET_BE(&pt[i].p_memsz); in BITSFUNC() 45 GET_BE(&pt[i].p_memsz); in BITSFUNC()
|
/linux/arch/powerpc/boot/ |
A D | elf_util.c | 44 info->memsize = (unsigned long)elf64ph->p_memsz; in parse_elf64() 75 info->memsize = elf32ph->p_memsz; in parse_elf32()
|
A D | elf.h | 101 Elf32_Word p_memsz; member 113 Elf64_Xword p_memsz; /* Segment size in memory */ member
|
/linux/arch/x86/entry/vdso/ |
A D | vdso2c.h | 73 if (GET_LE(&pt[i].p_memsz) != GET_LE(&pt[i].p_filesz)) in BITSFUNC() 76 load_size = GET_LE(&pt[i].p_memsz); in BITSFUNC() 81 GET_LE(&pt[i].p_memsz); in BITSFUNC()
|
/linux/arch/s390/kernel/ |
A D | kexec_elf.c | 45 buf.memsz = phdr->p_memsz; in kexec_file_add_kernel_elf() 48 if (entry - phdr->p_paddr < phdr->p_memsz) { in kexec_file_add_kernel_elf()
|
A D | crash_dump.c | 571 phdr->p_memsz = end - start; in loads_init() 599 phdr->p_memsz = phdr->p_filesz; in notes_init()
|
/linux/include/uapi/linux/ |
A D | elf-fdpic.h | 24 Elf32_Word p_memsz; /* allocation size recorded in file */ member
|
A D | elf.h | 251 Elf32_Word p_memsz; member 263 Elf64_Xword p_memsz; /* Segment size in memory */ member
|
/linux/drivers/remoteproc/ |
A D | qcom_q6v5_mss.c | 997 if (!phdr->p_memsz) in q6v5_phdr_valid() 1311 if (phdr->p_paddr + phdr->p_memsz > max_addr) in q6v5_mpss_load() 1312 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in q6v5_mpss_load() 1342 if (offset < 0 || offset + phdr->p_memsz > qproc->mpss_size) { in q6v5_mpss_load() 1348 if (phdr->p_filesz > phdr->p_memsz) { in q6v5_mpss_load() 1360 &qproc->mpss_phys, offset, phdr->p_memsz); in q6v5_mpss_load() 1400 if (phdr->p_memsz > phdr->p_filesz) { in q6v5_mpss_load() 1402 phdr->p_memsz - phdr->p_filesz); in q6v5_mpss_load() 1405 size += phdr->p_memsz; in q6v5_mpss_load() 1582 phdr->p_memsz, in qcom_q6v5_register_dump_segments() [all …]
|
A D | qcom_common.c | 281 if (!phdr->p_memsz) in qcom_register_dump_segments() 285 phdr->p_memsz); in qcom_register_dump_segments()
|
A D | remoteproc_elf_helpers.h | 73 ELF_GEN_FIELD_GET_SET(phdr, p_memsz, u64) in ELF_GEN_FIELD_GET_SET()
|
/linux/tools/testing/selftests/proc/ |
A D | proc-pid-vm.c | 102 uint64_t p_memsz; member 191 ph.p_memsz = sizeof(struct elf64_hdr) + sizeof(struct elf64_phdr) + len; in make_exe()
|
/linux/arch/mips/boot/ |
A D | elf2ecoff.c | 196 p->p_memsz = swab32(p->p_memsz); in convert_elf_phdrs() 367 nbss.len = ph[i].p_memsz - ph[i].p_filesz; in main()
|
/linux/drivers/media/platform/sti/c8sectpfe/ |
A D | c8sectpfe-core.c | 1038 phdr->p_memsz + phdr->p_memsz / 3); in load_imem_segment() 1067 dst, phdr->p_memsz); in load_dmem_segment() 1073 phdr->p_memsz - phdr->p_filesz); in load_dmem_segment()
|
/linux/arch/powerpc/kernel/ |
A D | fadump.c | 768 phdr->p_memsz = fw_dump.cpu_notes_buf_size; in fadump_update_elfcore_header() 1084 phdr->p_memsz = 0; in fadump_create_elfcore_headers() 1098 phdr->p_memsz = phdr->p_filesz = VMCOREINFO_NOTE_SIZE; in fadump_create_elfcore_headers() 1137 phdr->p_memsz = msize; in fadump_create_elfcore_headers()
|
/linux/arch/alpha/boot/tools/ |
A D | objstrip.c | 178 mem_size = elf_phdr->p_memsz; in main()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | opal-core.c | 385 phdr->p_filesz = phdr->p_memsz = cpu_to_be64(cpu_notes_size); in create_opalcore() 408 phdr->p_filesz = phdr->p_memsz = in create_opalcore()
|