Home
last modified time | relevance | path

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

/external/elfutils/libdwfl/
Delf-from-memory.c133 uint_fast16_t phnum; in elf_from_remote_memory() local
148 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
150 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
160 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
162 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
176 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
178 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
185 if (initial_bufsize < phnum * phentsize) in elf_from_remote_memory()
187 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
196 phnum * phentsize, phnum * phentsize); in elf_from_remote_memory()
[all …]
Ddwfl_segment_report_module.c181 uint_fast16_t phnum; in dwfl_segment_report_module() local
205 phnum = ehdr.e32.e_phnum; in dwfl_segment_report_module()
218 phnum = ehdr.e64.e_phnum; in dwfl_segment_report_module()
233 if (phnum == 0) in dwfl_segment_report_module()
237 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module()
249 Elf32_Phdr p32[phnum]; in dwfl_segment_report_module()
250 Elf64_Phdr p64[phnum]; in dwfl_segment_report_module()
393 && likely (filesz_offset >= phoff + phnum * phentsize)) in dwfl_segment_report_module()
414 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
426 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
[all …]
Dlink_map.c645 GElf_Xword phnum = 0; in dwfl_link_map_report() local
658 phnum = val; \ in dwfl_link_map_report()
690 if (phdr != 0 && phnum != 0) in dwfl_link_map_report()
698 .d_size = phnum * phent, in dwfl_link_map_report()
702 phdr, phnum * phent, memory_callback_arg)) in dwfl_link_map_report()
708 char data[phnum * phent]; in dwfl_link_map_report()
714 .d_size = phnum * phent, in dwfl_link_map_report()
725 Elf32_Phdr p32[phnum]; in dwfl_link_map_report()
726 Elf64_Phdr p64[phnum]; in dwfl_link_map_report()
730 for (size_t i = 0; i < phnum; ++i) in dwfl_link_map_report()
[all …]
/external/elfutils/libelf/
Dgelf_newphdr.c62 gelf_newphdr (elf, phnum) in gelf_newphdr() argument
64 size_t phnum;
67 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
68 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
Delf32_getphdr.c97 size_t phnum = ehdr->e_phnum; variable
98 if (phnum == 0)
104 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
154 for (size_t cnt = 0; cnt < phnum; ++cnt)
201 for (size_t cnt = 0; cnt < phnum; ++cnt)
/external/valgrind/main/coregrind/
Dpub_core_ume.h54 Int phnum; // OUT: number of phdrs member
/external/valgrind/main/coregrind/m_ume/
Delf.c346 info->phnum = e->e.e_phnum;
/external/elfutils/src/
Dunstrip.c973 uint_fast16_t phnum; in find_alloc_sections_prelink() local
977 phnum = ehdr.e32.e_phnum; in find_alloc_sections_prelink()
982 phnum = ehdr.e64.e_phnum; in find_alloc_sections_prelink()
986 size_t phsize = gelf_fsize (main, ELF_T_PHDR, phnum, EV_CURRENT); in find_alloc_sections_prelink()
/external/valgrind/main/coregrind/m_initimg/
Dinitimg-linux.c664 auxv->u.a_val = info->phnum; in setup_client_stack()
/external/valgrind/main/perf/
Dtinycc.c19217 int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k; in tcc_output_file() local
19423 phnum = 0; in tcc_output_file()
19427 phnum = 4; in tcc_output_file()
19429 phnum = 2; in tcc_output_file()
19432 phnum = 3; in tcc_output_file()
19459 phdr = tcc_mallocz(phnum * sizeof(Elf32_Phdr)); in tcc_output_file()
19462 file_offset = sizeof(Elf32_Ehdr) + phnum * sizeof(Elf32_Phdr); in tcc_output_file()
19466 if (phnum > 0) { in tcc_output_file()
19600 ph = &phdr[phnum - 1]; in tcc_output_file()
19675 ehdr.e_phnum = phnum; in tcc_output_file()
[all …]