Lines Matching defs:shnum
339 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum,
345 for (size_t i = 1; i < shnum; ++i)
369 return shnum;
548 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum)
550 const size_t added = shnum - old_shnum;
588 for (size_t i = old_shnum; i < shnum; ++i)
629 size_t shnum, size_t shstrndx,
637 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum);
976 uint_fast16_t shnum;
980 shnum = ehdr.e32.e_shnum;
985 shnum = ehdr.e64.e_shnum;
990 src.d_size = gelf_fsize (main, ELF_T_SHDR, shnum - 1, EV_CURRENT);
999 Elf32_Shdr s32[shnum - 1];
1000 Elf64_Shdr s64[shnum - 1];
1008 undo_sections = xmalloc ((shnum - 1) * sizeof undo_sections[0]);
1009 for (size_t i = 0; i < shnum - 1; ++i)