/third_party/elfutils/tests/ |
H A D | update2.c | 77 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main() 111 phdr[0].p_offset = ehdr->e_phoff; in main() 112 phdr[0].p_offset = ehdr->e_phoff; in main() 113 phdr[0].p_vaddr = ehdr->e_phoff; in main() 114 phdr[0].p_paddr = ehdr->e_phoff; in main() 137 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
|
H A D | update3.c | 86 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main() 160 phdr[0].p_offset = ehdr->e_phoff; in main() 161 phdr[0].p_offset = ehdr->e_phoff; in main() 162 phdr[0].p_vaddr = ehdr->e_phoff; in main() 163 phdr[0].p_paddr = ehdr->e_phoff; in main() 192 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
|
H A D | elfshphehdr.c | 73 check ("e_phoff == 0", ehdr.e_phoff == 0); in test() 100 check ("e_phoff == 0", ehdr.e_phoff == 0); in test() 118 ehdr.e_phoff = ehdr.e_ehsize; in test() 120 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in test() 140 check ("e_phoff != 0", ehdr.e_phoff != 0); in test()
|
H A D | update4.c | 90 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main() 312 phdr[0].p_offset = ehdr->e_phoff; in main() 313 phdr[0].p_offset = ehdr->e_phoff; in main() 314 phdr[0].p_vaddr = ehdr->e_phoff; in main() 315 phdr[0].p_paddr = ehdr->e_phoff; in main() 344 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
|
H A D | newfile.c | 41 ehdr->e_phoff, in print_ehdr() 120 ZERO_TEST (e_phoff); in main() 152 ZERO_TEST (e_phoff); in main()
|
H A D | alldts.c | 230 phdr[0].p_offset = ehdr->e_phoff; in main() 231 phdr[0].p_vaddr = ehdr->e_phoff; in main() 232 phdr[0].p_paddr = ehdr->e_phoff; in main()
|
H A D | update1.c | 76 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main() 114 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
|
H A D | elfstrmerge.c | 304 last_offset = (ehdr.e_phoff in main() 650 newehdr.e_phoff = ehdr.e_phoff; in main()
|
/third_party/elfutils/libelf/ |
H A D | elf32_getphdr.c | 76 if (phnum == 0 || ehdr->e_phoff == 0) in ElfW2() 86 || ehdr->e_phoff > elf->maximum_size in ElfW2() 87 || elf->maximum_size - ehdr->e_phoff < size) in ElfW2() 97 if (unlikely (ehdr->e_phoff >= elf->maximum_size) in ElfW2() 98 || unlikely (elf->maximum_size - ehdr->e_phoff < size)) in ElfW2() 107 + elf->start_offset + ehdr->e_phoff); in ElfW2() 191 elf->start_offset + ehdr->e_phoff); in ElfW2()
|
H A D | elf32_updatefile.c | 177 if (ehdr->e_phoff > ehdr->e_ehsize) in __elfw2() 179 __libelf_fill_byte, ehdr->e_phoff - ehdr->e_ehsize); in __elfw2() 188 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 193 memmove (elf->map_address + elf->start_offset + ehdr->e_phoff, in __elfw2() 208 ehdr->e_phoff) in __elfw2() 600 if (ehdr->e_phoff > ehdr->e_ehsize in __elfw2() 602 ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled) in __elfw2() 632 phdr_size, ehdr->e_phoff) in __elfw2() 655 last_offset = (ehdr->e_phoff + sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
|
H A D | gelf_update_ehdr.c | 70 || unlikely (src->e_phoff > 0xffffffffull) in gelf_update_ehdr() 85 COPY (e_phoff); in gelf_update_ehdr()
|
H A D | elf_getphdrnum.c | 101 ? elf->state.elf32.ehdr->e_phoff in __elf_getphdrnum_chk_rdlock() 102 : elf->state.elf64.ehdr->e_phoff); in __elf_getphdrnum_chk_rdlock()
|
H A D | elf32_updatenull.c | 115 /* If phnum is zero make sure e_phoff is also zero and not some random in ELFW() 117 if (ehdr->e_phnum == 0 && ehdr->e_phoff != 0) in ELFW() 119 ehdr->e_phoff = 0; in ELFW() 155 /* The user is supposed to fill out e_phoff. Use it and in __elfw2() 158 ehdr->e_phoff in __elfw2() 163 update_if_changed (ehdr->e_phoff, in __elfw2()
|
H A D | gelf_getehdr.c | 78 COPY (e_phoff); in __gelf_getehdr_rdlock()
|
/third_party/libunwind/libunwind/src/coredump/ |
H A D | _UCD_create.c | 116 off_t ofs = (_64bits ? elf_header64.e_phoff : elf_header32.e_phoff); in _UCD_create()
|
/third_party/elfutils/libdwfl/ |
H A D | link_map.c | 582 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align)) in consider_executable() 589 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr) in consider_executable() 597 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align) in consider_executable() 602 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset in consider_executable() 850 off_t off = ehdr->e_phoff; in dwfl_link_map_report()
|
H A D | elf-from-memory.c | 137 phoff = ehdr.e32.e_phoff; in elf_from_remote_memory() 154 phoff = ehdr.e64.e_phoff; in elf_from_remote_memory()
|
/third_party/libunwind/libunwind/src/ |
H A D | dl-iterate-phdr.c | 79 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) (start + ehdr->e_phoff); in dl_iterate_phdr()
|
/third_party/elfutils/src/ |
H A D | elfcmp.c | 194 || ehdr1->e_phoff != ehdr2->e_phoff in main() 576 phdr_region.from = ehdr1->e_phoff; in main() 577 phdr_region.to = ehdr1->e_phoff + phnum1 * ehdr1->e_phentsize; in main()
|
/third_party/libunwind/libunwind/src/ia64/ |
H A D | Gfind_unwind_table.c | 107 phdr = (Elf64_Phdr *) ((char *) edi->ei.image + ehdr->e_phoff); in ia64_find_unwind_table()
|
/third_party/musl/src/internal/linux/ |
H A D | vdso.c | 77 Phdr *ph = (void *)((char *)eh + eh->e_phoff); in __get_vdso_info()
|
/third_party/musl/porting/linux/user/src/internal/ |
H A D | vdso.c | 77 Phdr *ph = (void *)((char *)eh + eh->e_phoff); in __get_vdso_info()
|
/third_party/musl/src/internal/ |
H A D | vdso.c | 50 Phdr *ph = (void *)((char *)eh + eh->e_phoff); in __vdsosym()
|
/third_party/musl/porting/liteos_a/user/ldso/ |
H A D | dynlink.c | 647 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library() 651 } else if (eh->e_phoff + phsize > l) { in map_library() 652 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library() 657 ph = ph0 = (void *)((char *)buf + eh->e_phoff); in map_library() 761 if (!dso->phdr && eh->e_phoff >= ph->p_offset in map_library() 762 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library() 764 + (eh->e_phoff-ph->p_offset)); in map_library() 1682 ldso.phdr = laddr(&ldso, ehdr->e_phoff); in __dls2() 1924 Phdr *phdr = vdso.phdr = (void *)(vdso_base + ehdr->e_phoff); in __dls3()
|
/third_party/musl/porting/liteos_a/user_debug/ldso/ |
H A D | dynlink.c | 647 l = pread(fd, allocated_buf, phsize, eh->e_phoff); in map_library() 651 } else if (eh->e_phoff + phsize > l) { in map_library() 652 l = pread(fd, buf+1, phsize, eh->e_phoff); in map_library() 657 ph = ph0 = (void *)((char *)buf + eh->e_phoff); in map_library() 761 if (!dso->phdr && eh->e_phoff >= ph->p_offset in map_library() 762 && eh->e_phoff+phsize <= ph->p_offset+ph->p_filesz) { in map_library() 764 + (eh->e_phoff-ph->p_offset)); in map_library() 1681 ldso.phdr = laddr(&ldso, ehdr->e_phoff); in __dls2() 1923 Phdr *phdr = vdso.phdr = (void *)(vdso_base + ehdr->e_phoff); in __dls3()
|