Lines Matching refs:scncnt
264 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local
265 if (scncnt == (size_t) -1l) in file_read_elf()
272 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()
275 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()
280 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()
288 assert ((unsigned int) scncnt == scncnt); in file_read_elf()
291 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
350 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()
360 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
379 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
391 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
452 < scncnt * sizeof (Elf64_Shdr))) in file_read_elf()
457 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
476 && elf->state.elf64.shdr[cnt].sh_link < scncnt) in file_read_elf()
488 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()