Home
last modified time | relevance | path

Searched refs:p_vaddr (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.6.21/fs/
Dbinfmt_elf_test.c7 { .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 …]
Dbinfmt_elf_fdpic.c291 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 …]
Dbinfmt_elf.c375 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/
Delf2ecoff.c125 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/
Dobjstrip.c182 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/
Delf-fdpic.h23 Elf32_Addr p_vaddr; /* VMA recorded in file */ member
38 Elf64_Addr p_vaddr; /* VMA recorded in file */ member
Delf.h252 Elf32_Addr p_vaddr; member
264 Elf64_Addr p_vaddr; /* Segment virtual address */ member
/linux-6.6.21/tools/testing/selftests/kvm/lib/
Delf.c160 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/
Delf.h98 Elf32_Addr p_vaddr; member
110 Elf64_Addr p_vaddr; /* Segment virtual address */ member
/linux-6.6.21/kernel/
Dkexec_elf.c222 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()
Dcrash_core.c391 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/
Delfcore.c53 void *addr = (void *) phdrp[i].p_vaddr; in elf_core_write_extra_data()
/linux-6.6.21/arch/ia64/kernel/
Delfcore.c52 void *addr = (void *)gate_phdrs[i].p_vaddr; in elf_core_write_extra_data()
/linux-6.6.21/arch/arm64/kernel/
Delfcore.c100 phdr.p_vaddr = m->start; in elf_core_write_extra_phdrs()
/linux-6.6.21/tools/testing/selftests/proc/
Dproc-pid-vm.c101 uint64_t p_vaddr; member
190 ph.p_vaddr = VADDR; in make_exe()
/linux-6.6.21/drivers/remoteproc/
Dremoteproc_elf_helpers.h71 ELF_GEN_FIELD_GET_SET(phdr, p_vaddr, u64) in ELF_GEN_FIELD_GET_SET()
/linux-6.6.21/arch/sparc/vdso/
Dvdso2c.h34 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
/linux-6.6.21/sound/pci/mixart/
Dmixart_hwdep.c82 __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/
Delf_kexec.c94 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/
Dparse_vdso.c100 - (uintptr_t)pt[i].p_vaddr; in vdso_init_from_sysinfo_ehdr()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-core.c385 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/
Dvdso2c.h70 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
/linux-6.6.21/tools/perf/util/
Dsymbol-elf.c272 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/
Dfadump.c1098 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/
Dusdt.c422 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()

12