Lines Matching refs:phnum
127 size_t phnum; in open_elf() local
128 if (unlikely (elf_getphdrnum (file->elf, &phnum) != 0)) in open_elf()
132 for (size_t i = 0; i < phnum; ++i) in open_elf()
334 uint_fast16_t phnum; in find_prelink_address_sync() local
341 phnum = ehdr.e32.e_phnum; in find_prelink_address_sync()
349 phnum = ehdr.e64.e_phnum; in find_prelink_address_sync()
357 + phnum * phentsize in find_prelink_address_sync()
391 src.d_size = phnum * phentsize; in find_prelink_address_sync()
397 if (unlikely (phnum > SIZE_MAX / phdr_size)) in find_prelink_address_sync()
399 const size_t phdrs_bytes = phnum * phdr_size; in find_prelink_address_sync()
413 Elf32_Phdr (*p32)[phnum] = phdrs; in find_prelink_address_sync()
414 for (uint_fast16_t i = 0; i < phnum; ++i) in find_prelink_address_sync()
423 Elf64_Phdr (*p64)[phnum] = phdrs; in find_prelink_address_sync()
424 for (uint_fast16_t i = 0; i < phnum; ++i) in find_prelink_address_sync()
666 find_offsets (Elf *elf, GElf_Addr main_bias, size_t phnum, size_t n, in find_offsets() argument
670 for (size_t i = 0; i < phnum; ++i) in find_offsets()
703 Dwfl_Module *mod, size_t phnum, in translate_offs() argument
708 find_offsets (mod->main.elf, adjust, phnum, i_max, addrs, offs); in translate_offs()
829 size_t phnum; in find_dynsym() local
830 if (unlikely (elf_getphdrnum (mod->main.elf, &phnum) != 0)) in find_dynsym()
833 for (size_t i = 0; i < phnum; ++i) in find_dynsym()
893 translate_offs (0, mod, phnum, addrs, strsz, ehdr); in find_dynsym()
895 translate_offs (mod->main_bias, mod, phnum, addrs, strsz, ehdr); in find_dynsym()