Home
last modified time | relevance | path

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

12

/external/elfutils/0.153/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.c185 uint_fast16_t phnum; in dwfl_segment_report_module() local
209 phnum = ehdr.e32.e_phnum; in dwfl_segment_report_module()
222 phnum = ehdr.e64.e_phnum; in dwfl_segment_report_module()
237 if (phnum == 0) in dwfl_segment_report_module()
241 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module()
253 Elf32_Phdr p32[phnum]; in dwfl_segment_report_module()
254 Elf64_Phdr p64[phnum]; in dwfl_segment_report_module()
398 && likely (filesz_offset >= phoff + phnum * phentsize)) in dwfl_segment_report_module()
421 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
433 for (uint_fast16_t i = 0; i < phnum; ++i) in dwfl_segment_report_module()
[all …]
Ddwfl_module_getdwarf.c134 size_t phnum; in open_elf() local
135 if (unlikely (elf_getphdrnum (file->elf, &phnum) != 0)) in open_elf()
139 for (size_t i = 0; i < phnum; ++i) in open_elf()
367 uint_fast16_t phnum; in find_prelink_address_sync() local
374 phnum = ehdr.e32.e_phnum; in find_prelink_address_sync()
382 phnum = ehdr.e64.e_phnum; in find_prelink_address_sync()
390 + phnum * phentsize in find_prelink_address_sync()
422 src.d_size = phnum * phentsize; in find_prelink_address_sync()
428 Elf32_Phdr p32[phnum]; in find_prelink_address_sync()
429 Elf64_Phdr p64[phnum]; in find_prelink_address_sync()
[all …]
Dcore-file.c144 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) in dwfl_report_core_segments() argument
154 for (size_t ndx = 0; result >= 0 && ndx < phnum; ++ndx) in dwfl_report_core_segments()
408 size_t phnum; in dwfl_core_file_report() local
409 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in dwfl_core_file_report()
417 int ndx = dwfl_report_core_segments (dwfl, elf, phnum, &notes_phdr); in dwfl_core_file_report()
439 while (ndx < (int) phnum); in dwfl_core_file_report()
Dlink_map.c640 GElf_Xword phnum = 0; in dwfl_link_map_report() local
653 phnum = val; \ in dwfl_link_map_report()
712 if (phdr != 0 && phnum != 0) in dwfl_link_map_report()
720 .d_size = phnum * phent, in dwfl_link_map_report()
724 phdr, phnum * phent, memory_callback_arg)) in dwfl_link_map_report()
730 char data[phnum * phent]; in dwfl_link_map_report()
736 .d_size = phnum * phent, in dwfl_link_map_report()
747 Elf32_Phdr p32[phnum]; in dwfl_link_map_report()
748 Elf64_Phdr p64[phnum]; in dwfl_link_map_report()
752 for (size_t i = 0; i < phnum; ++i) in dwfl_link_map_report()
[all …]
Ddwfl_report_elf.c193 size_t phnum; in __libdwfl_report_elf() local
194 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in __libdwfl_report_elf()
196 for (size_t i = 0; i < phnum; ++i) in __libdwfl_report_elf()
213 for (size_t i = phnum; i-- > 0;) in __libdwfl_report_elf()
Ddwfl_module_build_id.c110 size_t phnum; in __libdwfl_find_build_id() local
112 || unlikely (elf_getphdrnum (elf, &phnum) != 0)) in __libdwfl_find_build_id()
117 for (size_t i = 0; result == 0 && i < phnum; ++i) in __libdwfl_find_build_id()
/external/elfutils/0.153/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));
Dgelf_getphdr.c103 size_t phnum; local
106 || __elf_getphdrnum_rdlock (elf, &phnum) != 0
107 || (size_t) ndx >= phnum))
145 size_t phnum; local
148 || __elf_getphdrnum_rdlock (elf, &phnum) != 0
149 || (size_t) ndx >= phnum))
Dgelf_update_phdr.c104 size_t phnum; in gelf_update_phdr() local
107 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
108 || (size_t) ndx >= phnum)) in gelf_update_phdr()
141 size_t phnum; in gelf_update_phdr() local
144 || __elf_getphdrnum_rdlock (elf, &phnum) != 0 in gelf_update_phdr()
145 || (size_t) ndx >= phnum)) in gelf_update_phdr()
Delf32_getphdr.c97 size_t phnum; variable
98 if (__elf_getphdrnum_rdlock (elf, &phnum) != 0)
100 if (phnum == 0)
106 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
163 for (size_t cnt = 0; cnt < phnum; ++cnt)
210 for (size_t cnt = 0; cnt < phnum; ++cnt)
Delf32_updatefile.c168 size_t phnum; in __elfw2() local
169 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
202 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
207 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
221 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); in __elfw2()
569 size_t phnum; in __elfw2() local
570 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
602 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
611 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
618 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2()
[all …]
Delf32_updatenull.c167 size_t phnum; in __elfw2() local
168 if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0)) in __elfw2()
177 + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum)); in __elfw2()
186 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum); in __elfw2()
/external/chromium_org/components/nacl/loader/nonsfi/
Delf_loader.cc119 ElfW(Addr) GetLoadSize(const ElfW(Phdr)* phdrs, int phnum) { in GetLoadSize() argument
123 for (int i = 0; i < phnum; ++i) { in GetLoadSize()
145 int phnum, in ReserveMemory() argument
147 ElfW(Addr) size = GetLoadSize(phdrs, phnum); in ReserveMemory()
154 for (int i = 0; i < phnum; ++i) { in ReserveMemory()
179 const ElfW(Phdr)* phdrs, int phnum, ElfW(Addr) load_bias, in LoadSegments() argument
181 for (int i = 0; i < phnum; ++i) { in LoadSegments()
/external/elfutils/0.153/libdw/
Ddwarf_getcfi_elf.c211 size_t phnum; in getcfi_phdr() local
212 if (unlikely (elf_getphdrnum (elf, &phnum) != 0)) in getcfi_phdr()
215 for (size_t i = 0; i < phnum; ++i) in getcfi_phdr()
/external/valgrind/main/coregrind/
Dpub_core_ume.h56 Int phnum; // OUT: number of phdrs member
/external/elfutils/0.153/src/
Delflint.c349 static unsigned int phnum; variable
469 phnum = ehdr->e_phnum; in check_elf_header()
483 phnum = shdr->sh_info; in check_elf_header()
501 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
518 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
828 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
835 if (pcnt == phnum) in check_symtab()
983 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
1240 for (unsigned int i = 0; i < phnum; ++i) in check_reloc_shdr()
1714 for (n = 0; n < phnum; ++n) in check_dynamic()
[all …]
Dunstrip.c976 uint_fast16_t phnum; in find_alloc_sections_prelink() local
980 phnum = ehdr.e32.e_phnum; in find_alloc_sections_prelink()
985 phnum = ehdr.e64.e_phnum; in find_alloc_sections_prelink()
989 size_t phsize = gelf_fsize (main, ELF_T_PHDR, phnum, EV_CURRENT); in find_alloc_sections_prelink()
Dreadelf.c217 static size_t phnum; variable
646 if (unlikely (elf_getphdrnum (ebl->elf, &phnum) < 0)) in process_elf_file()
989 for (size_t cnt = 0; cnt < phnum; ++cnt) in print_phdr()
1045 for (size_t cnt = 0; cnt < phnum; ++cnt) in print_phdr()
1115 for (cnt2 = 0; cnt2 < phnum; ++cnt2) in print_phdr()
1127 if (cnt2 < phnum) in print_phdr()
1489 for (size_t i = 0; i < phnum; ++i) in print_dynamic()
1631 for (size_t inner = 0; inner < phnum; ++inner) in handle_relocs_rel()
1804 for (size_t inner = 0; inner < phnum; ++inner) in handle_relocs_rela()
8238 for (size_t cnt = 0; cnt < phnum; ++cnt) in handle_notes()
DChangeLog435 (phnum): New static variable.
437 (print_phdr): Use phnum instead of EHDR->e_phnum.
443 * elflint.c (phnum): New static variable.
/external/valgrind/main/coregrind/m_ume/
Delf.c349 info->phnum = e->e.e_phnum; in VG_()
/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 …]
/external/elfutils/0.153/po/
Duk.po2543 "overflow in phnum\n"
2546 "немає сигналу переповнення у phnum\n"
Den@boldquot.po2495 "overflow in phnum\n"
2498 "overflow in phnum\n"

12