/linux-6.12.1/fs/tests/ |
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-6.12.1/fs/ |
D | binfmt_elf_fdpic.c | 291 exec_params.load_addr = phdr->p_vaddr; in load_elf_fdpic_binary() 785 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 786 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 788 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 810 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 811 phdr->p_vaddr + phdr->p_filesz <= in elf_fdpic_map_file() 812 seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 814 (phdr->p_vaddr - seg->p_vaddr) + in elf_fdpic_map_file() 831 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() 832 phdr->p_vaddr + phdr->p_memsz <= in elf_fdpic_map_file() [all …]
|
D | binfmt_elf.c | 361 unsigned long size = eppnt->p_filesz + ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 362 unsigned long off = eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr); in elf_map() 412 zero_start = map_addr + ELF_PAGEOFFSET(eppnt->p_vaddr) + in elf_load() 414 zero_end = map_addr + ELF_PAGEOFFSET(eppnt->p_vaddr) + in elf_load() 426 zero_end = zero_start + ELF_PAGEOFFSET(eppnt->p_vaddr) + in elf_load() 458 min_addr = min(min_addr, ELF_PAGESTART(phdr[i].p_vaddr)); in total_mapping_size() 459 max_addr = max(max_addr, phdr[i].p_vaddr + phdr[i].p_memsz); in total_mapping_size() 669 vaddr = eppnt->p_vaddr; in load_elf_interp() 693 k = load_addr + eppnt->p_vaddr; in load_elf_interp() 1043 vaddr = elf_ppnt->p_vaddr; in load_elf_binary() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/arch/powerpc/boot/ |
D | elf.h | 98 Elf32_Addr p_vaddr; member 110 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
/linux-6.12.1/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 | 228 phdr->p_vaddr = (unsigned long) _text; in crash_prepare_elf64_headers() 245 phdr->p_vaddr = (unsigned long) __va(mstart); in crash_prepare_elf64_headers() 251 phdr, phdr->p_vaddr, phdr->p_paddr, phdr->p_filesz, in crash_prepare_elf64_headers()
|
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_fw_mips.c | 50 err = pvr_fw_find_mmu_segment(pvr_dev, program_header->p_vaddr, in process_elf_command_stream() 56 program_header->p_vaddr, program_header->p_memsz); in process_elf_command_stream()
|
/linux-6.12.1/arch/x86/um/ |
D | elfcore.c | 54 void *addr = (void *) phdrp[i].p_vaddr; in elf_core_write_extra_data()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | elfcore.c | 100 phdr.p_vaddr = m->start; in elf_core_write_extra_phdrs()
|
/linux-6.12.1/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.12.1/arch/riscv/kernel/ |
D | elf_kexec.c | 95 if (lowest_vaddr > phdr->p_vaddr) in elf_find_pbase() 96 lowest_vaddr = phdr->p_vaddr; in elf_find_pbase()
|
/linux-6.12.1/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.12.1/arch/sparc/vdso/ |
D | vdso2c.h | 34 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
/linux-6.12.1/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 102 uint64_t p_vaddr; member 191 ph.p_vaddr = VADDR; in make_exe()
|
/linux-6.12.1/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 112 - (uintptr_t)pt[i].p_vaddr; in vdso_init_from_sysinfo_ehdr()
|
/linux-6.12.1/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.12.1/arch/x86/entry/vdso/ |
D | vdso2c.h | 70 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
|
/linux-6.12.1/tools/perf/util/ |
D | symbol-elf.c | 273 if (vaddr >= phdr->p_vaddr && (vaddr < phdr->p_vaddr + sz)) in elf_read_program_header() 416 addr -= phdr.p_vaddr - phdr.p_offset; in get_ifunc_name() 1773 __func__, (u64)sym.st_value, (u64)phdr.p_vaddr, in dso__load_sym_internal() 1775 sym.st_value -= phdr.p_vaddr - phdr.p_offset; in dso__load_sym_internal() 1886 err = mapfn(phdr.p_vaddr, sz, phdr.p_offset, data); in elf_read_maps() 2102 .p_vaddr = addr, in kcore__add_phdr()
|
/linux-6.12.1/arch/s390/kernel/ |
D | crash_dump.c | 513 phdr->p_vaddr = old_identity_base + start; in loads_init() 539 phdr->p_vaddr = start; in text_init()
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | fadump.c | 1000 phdr->p_vaddr = (unsigned long)__va(start); in populate_elf_pt_load() 1027 phdr->p_vaddr = 0; in fadump_populate_elfcorehdr() 1041 phdr->p_vaddr = 0; in fadump_populate_elfcorehdr()
|