/linux-6.6.21/fs/ |
D | binfmt_elf_test.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 …]
|
D | binfmt_elf_fdpic.c | 291 exec_params.load_addr = phdr->p_vaddr; in load_elf_fdpic_binary() 792 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 793 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 795 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 817 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 818 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file() 819 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 821 (phdr->p_vaddr - seg->p_vaddr) + in elf_fdpic_map_file() 838 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 839 phdr->p_vaddr + phdr->p_memsz <= in elf_fdpic_map_file() [all …]
|
D | binfmt_elf.c | 375 unsigned long size = eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 376 unsigned long off = eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 418 min_addr = min(min_addr, ELF_PAGESTART(phdr[i].p_vaddr)); in total_mapping_size() 419 max_addr = max(max_addr, phdr[i].p_vaddr + phdr[i].p_memsz); in total_mapping_size() 631 vaddr = eppnt->p_vaddr; in load_elf_interp() 655 k = load_addr + eppnt->p_vaddr; in load_elf_interp() 668 k = load_addr + eppnt->p_vaddr + eppnt->p_filesz; in load_elf_interp() 676 k = load_addr + eppnt->p_vaddr + eppnt->p_memsz; in load_elf_interp() 1075 vaddr = elf_ppnt->p_vaddr; in load_elf_binary() 1189 elf_ppnt->p_vaddr; in load_elf_binary() [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/include/uapi/linux/ |
D | elf-fdpic.h | 23 Elf32_Addr p_vaddr; /* VMA recorded in file */ member 38 Elf64_Addr p_vaddr; /* VMA recorded in file */ member
|
D | elf.h | 252 Elf32_Addr p_vaddr; member 264 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | elf.c | 160 vm_vaddr_t seg_vstart = align_down(phdr.p_vaddr, vm->page_size); in kvm_vm_elf_load() 161 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load() 190 test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), in kvm_vm_elf_load()
|
/linux-6.6.21/arch/powerpc/boot/ |
D | elf.h | 98 Elf32_Addr p_vaddr; member 110 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
/linux-6.6.21/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 | crash_core.c | 391 phdr->p_vaddr = (unsigned long) _text; in crash_prepare_elf64_headers() 408 phdr->p_vaddr = (unsigned long) __va(mstart); 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/arch/x86/um/ |
D | elfcore.c | 53 void *addr = (void *) phdrp[i].p_vaddr; in elf_core_write_extra_data()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | elfcore.c | 52 void *addr = (void *)gate_phdrs[i].p_vaddr; in elf_core_write_extra_data()
|
/linux-6.6.21/arch/arm64/kernel/ |
D | elfcore.c | 100 phdr.p_vaddr = m->start; in elf_core_write_extra_phdrs()
|
/linux-6.6.21/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 101 uint64_t p_vaddr; member 190 ph.p_vaddr = VADDR; in make_exe()
|
/linux-6.6.21/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 71 ELF_GEN_FIELD_GET_SET(phdr, p_vaddr, u64) in ELF_GEN_FIELD_GET_SET()
|
/linux-6.6.21/arch/sparc/vdso/ |
D | vdso2c.h | 34 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
/linux-6.6.21/sound/pci/mixart/ |
D | mixart_hwdep.c | 82 __be32 p_vaddr; member 111 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), in mixart_load_elf()
|
/linux-6.6.21/arch/riscv/kernel/ |
D | elf_kexec.c | 94 if (lowest_vaddr > phdr->p_vaddr) in elf_find_pbase() 95 lowest_vaddr = phdr->p_vaddr; in elf_find_pbase()
|
/linux-6.6.21/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 100 - (uintptr_t)pt[i].p_vaddr; in vdso_init_from_sysinfo_ehdr()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | opal-core.c | 385 phdr->p_paddr = phdr->p_vaddr = 0; in create_opalcore() 409 phdr->p_vaddr = cpu_to_be64(opal_base_addr + paddr); in create_opalcore()
|
/linux-6.6.21/arch/x86/entry/vdso/ |
D | vdso2c.h | 70 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
/linux-6.6.21/tools/perf/util/ |
D | symbol-elf.c | 272 if (vaddr >= phdr->p_vaddr && (vaddr < phdr->p_vaddr + sz)) in elf_read_program_header() 415 addr -= phdr.p_vaddr - phdr.p_offset; in get_ifunc_name() 1703 __func__, (u64)sym.st_value, (u64)phdr.p_vaddr, in dso__load_sym_internal() 1705 sym.st_value -= phdr.p_vaddr - phdr.p_offset; in dso__load_sym_internal() 1814 err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data); in elf_read_maps() 2030 .p_vaddr = addr, in kcore__add_phdr()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | fadump.c | 1098 phdr->p_vaddr = 0; in fadump_create_elfcore_headers() 1113 phdr->p_vaddr = 0; in fadump_create_elfcore_headers() 1155 phdr->p_vaddr = (unsigned long)__va(mbase); in fadump_create_elfcore_headers()
|
/linux-6.6.21/tools/lib/bpf/ |
D | usdt.c | 422 i, path, (long)phdr.p_vaddr, (long)phdr.p_memsz, (long)phdr.p_offset, in parse_elf_segs() 435 seg->start = phdr.p_vaddr; in parse_elf_segs() 436 seg->end = phdr.p_vaddr + phdr.p_memsz; in parse_elf_segs()
|