| /linux/fs/tests/ |
| H A D | binfmt_elf_kunit.c | 7 { .p_type = PT_LOAD, .p_vaddr = 0, .p_memsz = 0, }, in total_mapping_size_test() 8 { .p_type = PT_INTERP, .p_vaddr = 10, .p_memsz = 999999, }, in total_mapping_size_test() 15 { .p_type = PT_PHDR, .p_vaddr = 0x00000040, .p_memsz = 0x0002d8, }, in total_mapping_size_test() 16 { .p_type = PT_INTERP, .p_vaddr = 0x00000318, .p_memsz = 0x00001c, }, in total_mapping_size_test() 17 { .p_type = PT_LOAD, .p_vaddr = 0x00000000, .p_memsz = 0x0033a8, }, in total_mapping_size_test() 18 { .p_type = PT_LOAD, .p_vaddr = 0x00004000, .p_memsz = 0x005c91, }, in total_mapping_size_test() 19 { .p_type = PT_LOAD, .p_vaddr = 0x0000a000, .p_memsz = 0x0022f8, }, in total_mapping_size_test() 20 { .p_type = PT_LOAD, .p_vaddr = 0x0000d330, .p_memsz = 0x000d40, }, in total_mapping_size_test() 21 { .p_type = PT_DYNAMIC, .p_vaddr = 0x0000d928, .p_memsz = 0x000200, }, in total_mapping_size_test() 22 { .p_type = PT_NOTE, .p_vaddr = 0x00000338, .p_memsz = 0x000030, }, in total_mapping_size_test() [all …]
|
| /linux/fs/ |
| H A D | binfmt_elf_fdpic.c | 171 params->stack_size = phdr->p_memsz; in elf_fdpic_fetch_phdrs() 806 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 832 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 852 phdr->p_vaddr + phdr->p_memsz <= in elf_fdpic_map_file() 853 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 864 if (phdr->p_memsz == 0 || in elf_fdpic_map_file() 865 phdr->p_memsz % sizeof(Elf_Dyn) != 0) in elf_fdpic_map_file() 868 tmp = phdr->p_memsz / sizeof(Elf_Dyn); in elf_fdpic_map_file() 890 load_addr = PAGE_ALIGN(mseg->addr + mseg->p_memsz); in elf_fdpic_map_file() 892 mseg->p_memsz += in elf_fdpic_map_file() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | elf-fdpic.h | 24 Elf32_Word p_memsz; /* allocation size recorded in file */ member 39 Elf64_Word p_memsz; /* allocation size recorded in file */ member
|
| /linux/arch/loongarch/kernel/ |
| H A D | kexec_elf.c | 36 if (size > phdr->p_memsz) in _elf_kexec_load() 37 size = phdr->p_memsz; in _elf_kexec_load() 44 kbuf->memsz = ALIGN(phdr->p_memsz, SZ_64K); in _elf_kexec_load()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 156 TEST_ASSERT(phdr.p_memsz > 0, "Unexpected loadable segment " in kvm_vm_elf_load() 159 n1, (u64)phdr.p_memsz); in kvm_vm_elf_load() 161 gva_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
|
| /linux/arch/powerpc/boot/ |
| H 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()
|
| H A D | elf.h | 101 Elf32_Word p_memsz; member 113 Elf64_Xword p_memsz; /* Segment size in memory */ member
|
| /linux/arch/s390/kernel/ |
| H A D | kexec_elf.c | 47 buf.memsz = phdr->p_memsz; in kexec_file_add_kernel_elf() 50 if (entry - phdr->p_paddr < phdr->p_memsz) { in kexec_file_add_kernel_elf()
|
| H A D | crash_dump.c | 502 phdr->p_memsz = size; in fill_ptload() 558 phdr->p_memsz = end - start; in text_init() 586 phdr->p_memsz = phdr->p_filesz; in notes_init()
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | fw.h | 61 __le32 p_memsz; member
|
| H A D | fw.c | 142 phdr.p_memsz = le32_to_cpu(p->p_memsz); in mm81x_fw_load_fw() 146 if (phdr.p_type != PT_LOAD || !phdr.p_memsz) in mm81x_fw_load_fw()
|
| /linux/arch/mips/boot/ |
| H 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/remoteproc/ |
| H 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/ |
| H A D | proc-pid-vm.c | 109 uint64_t p_memsz; member 198 ph.p_memsz = sizeof(struct elf64_hdr) + sizeof(struct elf64_phdr) + len; in make_exe()
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 178 mem_size = elf_phdr->p_memsz; in main()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 467 if (phdr->p_offset + phdr->p_memsz > max) in read_build_id() 469 err = parse_build_id_buf(data + phdr->p_offset, phdr->p_memsz, build_id); in read_build_id()
|
| /linux/tools/perf/util/ |
| H A D | genelf.c | 236 phdr[0].p_memsz = csize; in jit_write_elf()
|
| H A D | symbol-elf.c | 255 sz = max(phdr->p_memsz, phdr->p_filesz); in elf_read_program_header() 1891 sz = min(phdr.p_memsz, phdr.p_filesz); in dso__type_fd() 2113 .p_memsz = len, in kcore_copy_info__addnew()
|
| /linux/sound/pci/mixart/ |
| H A D | mixart_hwdep.c | 85 __be32 p_memsz; member
|
| /linux/fs/proc/ |
| H A D | kcore.c | 408 phdr->p_filesz = phdr->p_memsz = m->size; in read_kcore_iter()
|
| /linux/tools/lib/bpf/ |
| H A D | usdt.c | 442 (unsigned long)phdr.p_vaddr, (unsigned long)phdr.p_memsz, (unsigned long)phdr.p_offset, in parse_elf_segs() 456 seg->end = phdr.p_vaddr + phdr.p_memsz; in parse_elf_segs()
|
| /linux/arch/mips/kernel/ |
| H A D | vpe.c | 707 0, phdr->p_memsz - phdr->p_filesz); in vpe_elfload()
|