/openbmc/linux/fs/ |
H A 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 …]
|
H A 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 …]
|
H A 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() 1076 vaddr = elf_ppnt->p_vaddr; in load_elf_binary() 1190 elf_ppnt->p_vaddr; in load_elf_binary() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/patchelf/patchelf/ |
H A D | 0002-align-startOffset-with-p_align-instead-of-pagesize-f.patch | 8 should satisfy (p_vaddr mod pagesize) == (p_offset mod pagesize). However, 9 glibc earlier than 2.35 incorrectly requires that the LOAD segment be (p_vaddr 14 that newly added LOAD segments satisfy (p_vaddr mod p_align) == (p_offset mod 34 + (p_vaddr mod p_align) == (p_offset mod p_align). 36 + (p_vaddr mod pagesize) == (p_offset mod pagesize), so glibc is probably
|
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/ |
H A D | ldconfig-handle-.dynstr-located-in-separate-segment.patch | 45 - loadaddr = read32(segment->p_vaddr, be) - read32(segment->p_offset, be); 80 + && read32(dyn_entry->d_un.d_val, be) >= read32(segment->p_vaddr, be) 81 + && (read32(dyn_entry->d_un.d_val, be) - read32(segment->p_vaddr, be) 84 + loadoff = read32(segment->p_vaddr, be) - read32(segment->p_offset, be); 123 - loadaddr = read64(segment->p_vaddr, be) - read64(segment->p_offset, be); 158 + && read64(dyn_entry->d_un.d_val, be) >= read64(segment->p_vaddr, be) 159 + && (read64(dyn_entry->d_un.d_val, be) - read64(segment->p_vaddr, be) 162 + loadoff = read64(segment->p_vaddr, be) - read64(segment->p_offset, be);
|
H A D | endian-ness_handling.patch | 78 - loadaddr = segment->p_vaddr - segment->p_offset; 79 + loadaddr = read32(segment->p_vaddr, be) - read32(segment->p_offset, be); 224 - loadaddr = segment->p_vaddr - segment->p_offset; 225 + loadaddr = read64(segment->p_vaddr, be) - read64(segment->p_offset, be);
|
/openbmc/linux/arch/mips/boot/ |
H A 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 …]
|
/openbmc/linux/arch/alpha/boot/tools/ |
H A 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()
|
/openbmc/linux/include/uapi/linux/ |
H A D | elf-fdpic.h | 23 Elf32_Addr p_vaddr; /* VMA recorded in file */ member 38 Elf64_Addr p_vaddr; /* VMA recorded in file */ member
|
H A D | elf.h | 252 Elf32_Addr p_vaddr; member 264 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A 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()
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 73 bswaptls(&phdr->p_vaddr); /* Segment virtual address */ in bswap_phdr() 563 error = target_mmap(TARGET_ELF_PAGESTART(rbase + elf_ppnt->p_vaddr), in load_elf_sections() 565 TARGET_ELF_PAGEOFFSET(elf_ppnt->p_vaddr)), in load_elf_sections() 570 TARGET_ELF_PAGEOFFSET(elf_ppnt->p_vaddr))); in load_elf_sections() 577 start_bss = rbase + elf_ppnt->p_vaddr + elf_ppnt->p_filesz; in load_elf_sections() 578 end_bss = rbase + elf_ppnt->p_vaddr + elf_ppnt->p_memsz; in load_elf_sections() 589 baddr = TARGET_ELF_PAGESTART(rbase + elf_ppnt->p_vaddr); in load_elf_sections() 749 baddr = elf_ppnt->p_vaddr; in load_elf_binary() 775 elf_brk = MAX(elf_brk, et_dyn_addr + elf_ppnt->p_vaddr + in load_elf_binary()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | elf.h | 98 Elf32_Addr p_vaddr; member 110 Elf64_Addr p_vaddr; /* Segment virtual address */ member
|
/openbmc/u-boot/tools/ |
H A D | prelink-riscv.inc | 32 if (p->p_vaddr <= addr && p->p_vaddr + p->p_memsz > addr) 33 return data + p->p_offset + (addr - p->p_vaddr);
|
/openbmc/linux/kernel/ |
H A 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()
|
H A 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()
|
/openbmc/qemu/include/hw/ |
H A D | elf_ops.h.inc | 22 bswapSZs(&phdr->p_vaddr); /* Segment virtual address */ 237 if (rels[i].r_offset < ph->p_vaddr || 238 rels[i].r_offset >= ph->p_vaddr + ph->p_filesz) { 241 addr = &data[rels[i].r_offset - ph->p_vaddr]; 526 ph->p_vaddr != ph->p_paddr && 527 ehdr.e_entry >= ph->p_vaddr && 528 ehdr.e_entry < ph->p_vaddr + ph->p_filesz && 530 *pentry = ehdr.e_entry - ph->p_vaddr + ph->p_paddr;
|
/openbmc/qemu/linux-user/ |
H A D | gen-vdso-elfn.c.inc | 32 bswaps(&phdr->p_vaddr); /* Segment virtual address */ 160 if (phdr[i].p_vaddr != 0) { 203 dynamic_addr = phdr[i].p_vaddr; 209 if (first_segsz < phdr[i].p_vaddr + phdr[i].p_filesz) { 220 output_reloc(outf, buf, &phdr[i].p_vaddr);
|
/openbmc/openbmc/poky/scripts/ |
H A D | relocate_sdk.py | 84 p_type, p_offset, p_vaddr, p_paddr, p_filesz,\ 88 p_type, p_flags, p_offset, p_vaddr, p_paddr, \
|
/openbmc/linux/arch/x86/um/ |
H A D | elfcore.c | 53 void *addr = (void *) phdrp[i].p_vaddr; in elf_core_write_extra_data()
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | elfcore.c | 52 void *addr = (void *)gate_phdrs[i].p_vaddr; in elf_core_write_extra_data()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | elfcore.c | 100 phdr.p_vaddr = m->start; in elf_core_write_extra_phdrs()
|
/openbmc/u-boot/include/ |
H A D | elf.h | 434 Elf32_Addr p_vaddr; /* virtual address of segment */ member 446 Elf64_Addr p_vaddr; /* virtual address of segment */ member
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-pid-vm.c | 101 uint64_t p_vaddr; member 190 ph.p_vaddr = VADDR; in make_exe()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 71 ELF_GEN_FIELD_GET_SET(phdr, p_vaddr, u64) in ELF_GEN_FIELD_GET_SET()
|