Lines Matching refs:scncnt
286 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local
287 if (scncnt == (size_t) -1l) in file_read_elf()
294 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()
300 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()
308 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()
316 assert ((unsigned int) scncnt == scncnt); in file_read_elf()
319 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
376 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()
378 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()
388 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
407 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
419 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
478 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()
480 < scncnt * sizeof (Elf64_Shdr))) in file_read_elf()
485 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
504 && elf->state.elf64.shdr[cnt].sh_link < scncnt) in file_read_elf()
516 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()