Home
last modified time | relevance | path

Searched refs:phentsize (Results 1 - 16 of 16) sorted by relevance

/third_party/elfutils/libdwfl/
H A Delf-from-memory.c124 uint_fast16_t phentsize; in elf_from_remote_memory() local
139 phentsize = ehdr.e32.e_phentsize; in elf_from_remote_memory()
140 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
156 phentsize = ehdr.e64.e_phentsize; in elf_from_remote_memory()
157 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
172 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
174 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
181 if (initial_bufsize < (size_t)phnum * phentsize) in elf_from_remote_memory()
183 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
193 phnum * phentsize, phnu in elf_from_remote_memory()
[all...]
H A Ddwfl_segment_report_module.c357 uint_fast16_t phentsize; in dwfl_segment_report_module() local
398 phentsize = ehdr.e32.e_phentsize; in dwfl_segment_report_module()
399 if (phentsize != sizeof (Elf32_Phdr)) in dwfl_segment_report_module()
416 phentsize = ehdr.e64.e_phentsize; in dwfl_segment_report_module()
417 if (phentsize != sizeof (Elf64_Phdr)) in dwfl_segment_report_module()
435 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module()
449 phnum = ph_buffer_size / phentsize; in dwfl_segment_report_module()
680 && likely (filesz_offset >= phoff + phnum * phentsize)) in dwfl_segment_report_module()
H A Ddwfl_module_getdwarf.c332 size_t phentsize = gelf_fsize (mod->main.elf, ELF_T_PHDR, 1, EV_CURRENT); in find_prelink_address_sync() local
339 || ehdr.e32.e_phentsize != phentsize) in find_prelink_address_sync()
347 || ehdr.e64.e_phentsize != phentsize) in find_prelink_address_sync()
357 + phnum * phentsize in find_prelink_address_sync()
391 src.d_size = phnum * phentsize; in find_prelink_address_sync()
H A Drelocate.c603 size_t phentsize = gelf_fsize (relocated, ELF_T_PHDR, 1, EV_CURRENT); in relocate_section() local
604 GElf_Off phdrs_end = phdrs_start + phnums * phentsize; in relocate_section()
/third_party/toybox/toys/posix/
H A Dfile.c37 phentsize, phnum, shsize, shnum; in do_elf_file() local
106 phentsize = elf_int(toybuf+42+12*bits, 2); in do_elf_file()
113 // With binutils, phentsize seems to only be non-zero if phnum is non-zero. in do_elf_file()
115 if (phnum && (phentsize != 32+24*bits)) { in do_elf_file()
116 printf(", corrupt phentsize %d?", phentsize); in do_elf_file()
128 if (phoff+phnum*phentsize>TT.len) goto bad; in do_elf_file()
130 char *phdr = map+phoff+i*phentsize; in do_elf_file()
/third_party/elfutils/tests/
H A Delfshphehdr.c145 size_t phentsize = (class == ELFCLASS32 in test() local
147 check ("e_phentsize", ehdr.e_phentsize == phentsize); in test()
/third_party/musl/ldso/
H A Ddlstart.c107 size_t phentsize = aux[AT_PHENT]; in _dlstart_c() local
109 for (i=phnum; i--; ph = (void *)((char *)ph + phentsize)) { in _dlstart_c()
H A Ddynlink.c73 size_t phentsize; member
620 for (; phcnt--; ph=(void *)((char *)ph+dso->phentsize)) { in reclaim_gaps()
833 dso->phentsize = eh->e_phentsize; in map_library()
1485 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) {
1776 ldso.phentsize = ehdr->e_phentsize;
1882 app.phentsize = aux[AT_PHENT];
2027 vdso.phentsize = ehdr->e_phentsize;
2322 size_t entsz = p->phentsize;
/third_party/musl/porting/liteos_a/user/ldso/
H A Ddynlink.c65 size_t phentsize; member
553 for (; phcnt--; ph=(void *)((char *)ph+dso->phentsize)) { in reclaim_gaps()
766 dso->phentsize = eh->e_phentsize; in map_library()
1392 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in kernel_mapped_dso()
1683 ldso.phentsize = ehdr->e_phentsize; in __dls2()
1785 app.phentsize = aux[AT_PHENT]; in __dls3()
1926 vdso.phentsize = ehdr->e_phentsize; in __dls3()
2213 size_t entsz = p->phentsize; in addr2dso()
/third_party/musl/porting/liteos_a/user_debug/ldso/
H A Ddynlink.c65 size_t phentsize; member
553 for (; phcnt--; ph=(void *)((char *)ph+dso->phentsize)) { in reclaim_gaps()
766 dso->phentsize = eh->e_phentsize; in map_library()
1391 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in kernel_mapped_dso()
1682 ldso.phentsize = ehdr->e_phentsize; in __dls2()
1784 app.phentsize = aux[AT_PHENT]; in __dls3()
1925 vdso.phentsize = ehdr->e_phentsize; in __dls3()
2212 size_t entsz = p->phentsize; in addr2dso()
/third_party/musl/porting/linux/user/src/internal/
H A Ddynlink.h96 size_t phentsize; member
/third_party/musl/src/internal/
H A Ddynlink.h106 size_t phentsize; member
/third_party/musl/porting/linux/user/ldso/
H A Dcfi.c155 size_t entsz = pldso->phentsize; in is_addr_in_ldso()
H A Ddynlink.c1258 for (; phcnt--; ph=(void *)((char *)ph+dso->phentsize)) { in reclaim_gaps()
1623 dso->phentsize = eh->e_phentsize; in map_library()
2514 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in kernel_mapped_dso()
2807 ldso.phentsize = ehdr->e_phentsize; in __dls2()
2914 app.phentsize = aux[AT_PHENT]; in __dls3()
3089 vdso.phentsize = ehdr->e_phentsize; in __dls3()
3790 size_t entsz = p->phentsize; in addr2dso()
5035 task->p->phentsize = task->eh->e_phentsize; in task_map_library()
5768 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in find_and_set_bss_name()
/third_party/musl/ldso/linux/
H A Dcfi.c150 size_t entsz = dso->phentsize; in addr_in_dso()
H A Ddynlink.c1293 for (; phcnt--; ph=(void *)((char *)ph+dso->phentsize)) { in reclaim_gaps()
1798 dso->phentsize = eh->e_phentsize; in map_library()
2743 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in kernel_mapped_dso()
3036 ldso.phentsize = ehdr->e_phentsize; in __dls2()
3149 app.phentsize = aux[AT_PHENT]; in __dls3()
3329 vdso.phentsize = ehdr->e_phentsize; in __dls3()
4107 size_t entsz = p->phentsize; in addr2dso()
5425 task->p->phentsize = task->eh->e_phentsize; in task_map_library()
6159 for (cnt = p->phnum; cnt--; ph = (void *)((char *)ph + p->phentsize)) { in find_and_set_bss_name()

Completed in 35 milliseconds