| /Linux-v5.4/fs/ |
| D | binfmt_elf_fdpic.c | 291 exec_params.load_addr = phdr->p_vaddr; in load_elf_fdpic_binary() 787 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 788 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 790 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 812 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 813 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file() 814 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 816 (phdr->p_vaddr - seg->p_vaddr) + in elf_fdpic_map_file() 833 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 834 phdr->p_vaddr + phdr->p_memsz <= in elf_fdpic_map_file() [all …]
|
| D | binfmt_elf.c | 353 unsigned long size = eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 354 unsigned long off = eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 403 return cmds[last_idx].p_vaddr + cmds[last_idx].p_memsz - in total_mapping_size() 404 ELF_PAGESTART(cmds[first_idx].p_vaddr); in total_mapping_size() 584 vaddr = eppnt->p_vaddr; in load_elf_interp() 610 k = load_addr + eppnt->p_vaddr; in load_elf_interp() 623 k = load_addr + eppnt->p_vaddr + eppnt->p_filesz; in load_elf_interp() 631 k = load_addr + eppnt->p_vaddr + eppnt->p_memsz; in load_elf_interp() 920 vaddr = elf_ppnt->p_vaddr; in load_elf_binary() 993 load_addr = (elf_ppnt->p_vaddr - elf_ppnt->p_offset); in load_elf_binary() [all …]
|
| /Linux-v5.4/arch/mips/boot/ |
| D | elf2ecoff.c | 125 if (h1->p_vaddr > h2->p_vaddr) in phcmp() 127 else if (h1->p_vaddr < h2->p_vaddr) in phcmp() 193 p->p_vaddr = swab32(p->p_vaddr); in convert_elf_phdrs() 364 ndata.vaddr = ph[i].p_vaddr; in main() 366 nbss.vaddr = ph[i].p_vaddr + ph[i].p_filesz; in main() 374 ntxt.vaddr = ph[i].p_vaddr; in main() 380 if (ph[i].p_vaddr < cur_vma) in main() 381 cur_vma = ph[i].p_vaddr; in main() 568 if (cur_vma != ph[i].p_vaddr) { in main() 569 uint32_t gap = ph[i].p_vaddr - cur_vma; in main() [all …]
|
| /Linux-v5.4/arch/alpha/boot/tools/ |
| D | objstrip.c | 182 if (elf_phdr->p_vaddr < e_entry) { in main() 183 unsigned long delta = e_entry - elf_phdr->p_vaddr; in main() 187 elf_phdr->p_vaddr += delta; in main() 192 prog_name, (long) elf_phdr->p_vaddr, in main() 193 elf_phdr->p_vaddr + fil_size, offset); in main()
|
| /Linux-v5.4/tools/testing/selftests/kvm/lib/ |
| D | elf.c | 161 vm_vaddr_t seg_vstart = phdr.p_vaddr; in kvm_vm_elf_load() 163 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load() 192 test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), in kvm_vm_elf_load()
|
| /Linux-v5.4/arch/powerpc/boot/ |
| D | elf.h | 98 Elf32_Addr p_vaddr; member 110 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
| /Linux-v5.4/kernel/ |
| D | kexec_elf.c | 222 phdr->p_vaddr = elf64_to_cpu(ehdr, buf_phdr->p_vaddr); in elf_read_phdr() 231 phdr->p_vaddr = elf32_to_cpu(ehdr, buf_phdr->p_vaddr); in elf_read_phdr()
|
| D | kexec_file.c | 1307 phdr->p_vaddr = (Elf64_Addr)_text; in crash_prepare_elf64_headers() 1324 phdr->p_vaddr = (unsigned long long) __va(mstart); in crash_prepare_elf64_headers() 1330 phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, in crash_prepare_elf64_headers()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | elf-fdpic.h | 23 Elf32_Addr p_vaddr; /* VMA recorded in file */ member
|
| D | elf.h | 247 Elf32_Addr p_vaddr; member 259 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
| /Linux-v5.4/arch/x86/um/ |
| D | elfcore.c | 53 void *addr = (void *) phdrp[i].p_vaddr; in elf_core_write_extra_data()
|
| /Linux-v5.4/arch/ia64/kernel/ |
| D | elfcore.c | 52 void *addr = (void *)gate_phdrs[i].p_vaddr; in elf_core_write_extra_data()
|
| /Linux-v5.4/tools/testing/selftests/proc/ |
| D | proc-pid-vm.c | 99 uint64_t p_vaddr; member 188 ph.p_vaddr = VADDR; in make_exe()
|
| /Linux-v5.4/arch/sparc/vdso/ |
| D | vdso2c.h | 34 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
| /Linux-v5.4/sound/pci/mixart/ |
| D | mixart_hwdep.c | 81 __be32 p_vaddr; member 110 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), in mixart_load_elf()
|
| /Linux-v5.4/tools/testing/selftests/vDSO/ |
| D | parse_vdso.c | 122 - (uintptr_t)pt[i].p_vaddr; in vdso_init_from_sysinfo_ehdr()
|
| /Linux-v5.4/arch/powerpc/oprofile/cell/ |
| D | vma_map.c | 162 map = vma_map_add(map, phdr.p_vaddr, phdr.p_memsz, in create_vma_map()
|
| /Linux-v5.4/arch/x86/entry/vdso/ |
| D | vdso2c.h | 36 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
| /Linux-v5.4/arch/powerpc/platforms/powernv/ |
| D | opal-core.c | 382 phdr->p_paddr = phdr->p_vaddr = 0; in create_opalcore() 406 phdr->p_vaddr = cpu_to_be64(opal_base_addr + paddr); in create_opalcore()
|
| /Linux-v5.4/fs/proc/ |
| D | kcore.c | 386 phdr->p_vaddr = (size_t)m->vaddr; in read_kcore() 388 phdr->p_vaddr = (size_t)m->addr; in read_kcore()
|
| D | vmcore.c | 858 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf64() 1049 phdr.p_vaddr = phdr.p_paddr = 0; in merge_note_headers_elf32()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | fadump.c | 974 phdr->p_vaddr = 0; in fadump_create_elfcore_headers() 989 phdr->p_vaddr = 0; in fadump_create_elfcore_headers() 1031 phdr->p_vaddr = (unsigned long)__va(mbase); in fadump_create_elfcore_headers()
|
| /Linux-v5.4/arch/s390/kernel/ |
| D | crash_dump.c | 571 phdr->p_vaddr = start; in loads_init()
|
| /Linux-v5.4/tools/perf/util/ |
| D | symbol-elf.c | 1198 err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data); in elf_read_maps() 1414 .p_vaddr = addr, in kcore__add_phdr()
|
| /Linux-v5.4/drivers/remoteproc/ |
| D | remoteproc_core.c | 1613 phdr->p_vaddr = segment->da; in rproc_coredump()
|