Home
last modified time | relevance | path

Searched refs:phnum (Results 1 – 25 of 37) sorted by relevance

12

/external/elfutils/src/libdwfl/
Delf-from-memory.c117 uint_fast16_t phnum; in elf_from_remote_memory() local
132 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
134 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
144 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
146 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
160 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
162 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
169 if (initial_bufsize < phnum * phentsize) in elf_from_remote_memory()
171 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
180 phnum * phentsize, phnum * phentsize); in elf_from_remote_memory()
[all …]
Dlink_map.c536 size_t phnum; in consider_executable() local
537 if (elf_getphdrnum (mod->main.elf, &phnum) != 0) in consider_executable()
540 for (size_t i = 0; i < phnum; ++i) in consider_executable()
705 GElf_Xword phnum = 0; in dwfl_link_map_report() local
721 phnum = val; \ in dwfl_link_map_report()
780 if (phdr != 0 && phnum != 0) in dwfl_link_map_report()
788 .d_size = phnum * phent, in dwfl_link_map_report()
792 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report()
828 if (e_phnum != phnum || ehdr->e_phentsize != phent) in dwfl_link_map_report()
837 assert (in.d_size == phnum * phent); in dwfl_link_map_report()
[all …]
Dcore-file.c123 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) in dwfl_report_core_segments() argument
133 for (size_t ndx = 0; result >= 0 && ndx < phnum; ++ndx) in dwfl_report_core_segments()
404 size_t phnum; in __libdwfl_dynamic_vaddr_get() local
405 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in __libdwfl_dynamic_vaddr_get()
407 for (size_t i = 0; i < phnum; ++i) in __libdwfl_dynamic_vaddr_get()
425 size_t phnum; in dwfl_core_file_report() local
426 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in dwfl_core_file_report()
447 int ndx = dwfl_report_core_segments (dwfl, elf, phnum, &notes_phdr); in dwfl_core_file_report()
524 while (ndx < (int) phnum); in dwfl_core_file_report()
Ddwfl_module_getdwarf.c123 size_t phnum; in open_elf() local
124 if (unlikely (elf_getphdrnum (file->elf, &phnum) != 0)) in open_elf()
128 for (size_t i = 0; i < phnum; ++i) in open_elf()
312 uint_fast16_t phnum; in find_prelink_address_sync() local
319 phnum = ehdr.e32.e_phnum; in find_prelink_address_sync()
327 phnum = ehdr.e64.e_phnum; in find_prelink_address_sync()
335 + phnum * phentsize in find_prelink_address_sync()
367 src.d_size = phnum * phentsize; in find_prelink_address_sync()
373 Elf32_Phdr p32[phnum]; in find_prelink_address_sync()
374 Elf64_Phdr p64[phnum]; in find_prelink_address_sync()
[all …]
Ddwfl_segment_report_module.c334 uint_fast16_t phnum; in dwfl_segment_report_module() local
361 phnum = ehdr.e32.e_phnum; in dwfl_segment_report_module()
374 phnum = ehdr.e64.e_phnum; in dwfl_segment_report_module()
389 if (phnum == 0) in dwfl_segment_report_module()
393 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module()
405 Elf32_Phdr p32[phnum]; in dwfl_segment_report_module()
406 Elf64_Phdr p64[phnum]; in dwfl_segment_report_module()
550 && likely (filesz_offset >= phoff + phnum * phentsize)) in dwfl_segment_report_module()
572 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
583 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
[all …]
Dlinux-core-attach.c61 static size_t phnum; in core_memory_read() local
62 if (elf_getphdrnum (core, &phnum) < 0) in core_memory_read()
67 for (size_t cnt = 0; cnt < phnum; ++cnt) in core_memory_read()
342 size_t phnum; in dwfl_core_file_attach() local
343 if (elf_getphdrnum (core, &phnum) < 0) in dwfl_core_file_attach()
350 for (size_t cnt = 0; cnt < phnum; ++cnt) in dwfl_core_file_attach()
Ddwfl_report_elf.c176 size_t phnum; in __libdwfl_elf_address_range() local
177 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in __libdwfl_elf_address_range()
179 for (size_t i = 0; i < phnum; ++i) in __libdwfl_elf_address_range()
202 for (size_t i = phnum; i-- > 0;) in __libdwfl_elf_address_range()
/external/elfutils/src/libelf/
Dgelf_newphdr.c41 gelf_newphdr (elf, phnum) in gelf_newphdr() argument
43 size_t phnum;
46 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
47 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
Dgelf_update_phdr.c83 size_t phnum; in gelf_update_phdr() local
86 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
87 || (size_t) ndx >= phnum)) in gelf_update_phdr()
120 size_t phnum; in gelf_update_phdr() local
123 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
124 || (size_t) ndx >= phnum)) in gelf_update_phdr()
Dgelf_getphdr.c82 size_t phnum; local
85 || __elf_getphdrnum_rdlock (elf, &phnum) != 0
86 || (size_t) ndx >= phnum))
124 size_t phnum; local
127 || __elf_getphdrnum_rdlock (elf, &phnum) != 0
128 || (size_t) ndx >= phnum))
Delf32_getphdr.c76 size_t phnum; variable
77 if (__elf_getphdrnum_rdlock (elf, &phnum) != 0)
79 if (phnum == 0 || ehdr->e_phoff == 0)
86 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
88 if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))
154 for (size_t cnt = 0; cnt < phnum; ++cnt)
201 for (size_t cnt = 0; cnt < phnum; ++cnt)
Delf32_updatefile.c147 size_t phnum; in __elfw2() local
148 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
181 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
186 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
200 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); in __elfw2()
551 size_t phnum; in __elfw2() local
552 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
584 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
593 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
600 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2()
[all …]
Delf32_updatenull.c146 size_t phnum; in __elfw2() local
147 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
156 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); in __elfw2()
165 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum); in __elfw2()
/external/elfutils/src/backends/
Dppc_symbol.c86 size_t phnum; in find_dyn_got() local
87 if (elf_getphdrnum (elf, &phnum) != 0) in find_dyn_got()
90 for (size_t i = 0; i < phnum; ++i) in find_dyn_got()
/external/elfutils/src/libdwelf/
Ddwelf_elf_gnu_build_id.c73 size_t phnum; in find_elf_build_id() local
74 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in find_elf_build_id()
80 for (size_t i = 0; result == 0 && i < phnum; ++i) in find_elf_build_id()
/external/elfutils/src/libdw/
Ddwarf_getcfi_elf.c190 size_t phnum; in getcfi_phdr() local
191 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in getcfi_phdr()
194 for (size_t i = 0; i < phnum; ++i) in getcfi_phdr()
/external/elfutils/src/src/
Dunstrip.c260 size_t phnum; in copy_elf() local
261 ELF_CHECK (elf_getphdrnum (inelf, &phnum) == 0, in copy_elf()
264 if (phnum > 0) in copy_elf()
266 ELF_CHECK (gelf_newphdr (outelf, phnum), in copy_elf()
270 for (size_t i = 0; i < phnum; ++i) in copy_elf()
979 uint_fast16_t phnum; in find_alloc_sections_prelink() local
983 phnum = ehdr.e32.e_phnum; in find_alloc_sections_prelink()
988 phnum = ehdr.e64.e_phnum; in find_alloc_sections_prelink()
992 size_t phsize = gelf_fsize (main, ELF_T_PHDR, phnum, EV_CURRENT); in find_alloc_sections_prelink()
1830 size_t phnum; in copy_elided_sections() local
[all …]
Dfindtextrel.c327 size_t phnum; in process_file() local
328 if (elf_getphdrnum (elf, &phnum) != 0) in process_file()
333 for (size_t i = 0; i < phnum; ++i) in process_file()
Delflint.c128 static unsigned int phnum; variable
470 phnum = ehdr->e_phnum; in check_elf_header()
484 phnum = shdr->sh_info; in check_elf_header()
502 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
519 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
846 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
853 if (pcnt == phnum) in check_symtab()
1001 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
1264 for (unsigned int i = 0; i < phnum; ++i) in check_reloc_shdr()
1741 for (n = 0; n < phnum; ++n) in check_dynamic()
[all …]
Dsize.c603 size_t phnum; in show_segments() local
604 if (elf_getphdrnum (elf, &phnum) != 0) in show_segments()
609 for (size_t cnt = 0; cnt < phnum; ++cnt) in show_segments()
Dstrip.c506 size_t phnum; in handle_elf() local
507 if (elf_getphdrnum (elf, &phnum) != 0) in handle_elf()
521 && unlikely (gelf_newphdr (newelf, phnum) == 0))) in handle_elf()
530 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
545 && unlikely (gelf_newphdr (debugelf, phnum) == 0))) in handle_elf()
554 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
Dreadelf.c234 static size_t phnum; variable
833 if (unlikely (elf_getphdrnum (ebl->elf, &phnum) < 0)) in process_elf_file()
1160 if (phnum == 0) in print_phdr()
1176 for (size_t cnt = 0; cnt < phnum; ++cnt) in print_phdr()
1249 for (size_t cnt = 0; cnt < phnum; ++cnt) in print_phdr()
1319 for (cnt2 = 0; cnt2 < phnum; ++cnt2) in print_phdr()
1331 if (cnt2 < phnum) in print_phdr()
1702 for (size_t i = 0; i < phnum; ++i) in print_dynamic()
1845 for (size_t inner = 0; inner < phnum; ++inner) in handle_relocs_rel()
2036 for (size_t inner = 0; inner < phnum; ++inner) in handle_relocs_rela()
[all …]
/external/valgrind/coregrind/
Dpub_core_ume.h56 Int phnum; // OUT: number of phdrs member
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.cc650 int phnum = dumper_->auxv()[AT_PHNUM]; in WriteDSODebugStream() local
651 if (!phnum || !phdr) in WriteDSODebugStream()
659 for (; phnum >= 0; phnum--, phdr++) { in WriteDSODebugStream()
/external/valgrind/coregrind/m_ume/
Delf.c347 info->phnum = e->e.e_phnum; in VG_()

12