Lines Matching refs:phnum

128       size_t phnum;  in open_elf()  local
129 if (unlikely (elf_getphdrnum (file->elf, &phnum) != 0)) in open_elf()
133 for (size_t i = 0; i < phnum; ++i) in open_elf()
335 uint_fast16_t phnum; in find_prelink_address_sync() local
342 phnum = ehdr.e32.e_phnum; in find_prelink_address_sync()
350 phnum = ehdr.e64.e_phnum; in find_prelink_address_sync()
358 + phnum * phentsize in find_prelink_address_sync()
392 src.d_size = phnum * phentsize; in find_prelink_address_sync()
398 if (unlikely (phnum > SIZE_MAX / phdr_size)) in find_prelink_address_sync()
400 const size_t phdrs_bytes = phnum * phdr_size; in find_prelink_address_sync()
414 Elf32_Phdr (*p32)[phnum] = phdrs; in find_prelink_address_sync()
415 for (uint_fast16_t i = 0; i < phnum; ++i) in find_prelink_address_sync()
424 Elf64_Phdr (*p64)[phnum] = phdrs; in find_prelink_address_sync()
425 for (uint_fast16_t i = 0; i < phnum; ++i) in find_prelink_address_sync()
667 find_offsets (Elf *elf, GElf_Addr main_bias, size_t phnum, size_t n, in find_offsets() argument
671 for (size_t i = 0; i < phnum; ++i) in find_offsets()
704 Dwfl_Module *mod, size_t phnum, in translate_offs() argument
709 find_offsets (mod->main.elf, adjust, phnum, i_max, addrs, offs); in translate_offs()
830 size_t phnum; in find_dynsym() local
831 if (unlikely (elf_getphdrnum (mod->main.elf, &phnum) != 0)) in find_dynsym()
834 for (size_t i = 0; i < phnum; ++i) in find_dynsym()
894 translate_offs (0, mod, phnum, addrs, strsz, ehdr); in find_dynsym()
896 translate_offs (mod->main_bias, mod, phnum, addrs, strsz, ehdr); in find_dynsym()