Lines Matching refs:shnum

380 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum,  in symtab_count_leading_section_symbols()  argument
386 for (size_t i = 1; i < shnum; ++i) in symtab_count_leading_section_symbols()
410 return shnum; in symtab_count_leading_section_symbols()
615 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) in add_new_section_symbols() argument
617 const size_t added = shnum - old_shnum; in add_new_section_symbols()
656 for (size_t i = old_shnum; i < shnum; ++i) in add_new_section_symbols()
697 size_t shnum, size_t shstrndx, in check_symtab_section_symbols() argument
705 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum); in check_symtab_section_symbols()
1110 uint_fast16_t shnum; /* prelink doesn't handle > SHN_LORESERVE. */ in find_alloc_sections_prelink() local
1114 shnum = ehdr.e32.e_shnum; in find_alloc_sections_prelink()
1119 shnum = ehdr.e64.e_shnum; in find_alloc_sections_prelink()
1124 if (unlikely (shnum == 0 || shnum > SIZE_MAX / shsize + 1)) in find_alloc_sections_prelink()
1126 (size_t) shnum, ".gnu.prelink_undo"); in find_alloc_sections_prelink()
1128 --shnum; in find_alloc_sections_prelink()
1132 src.d_size = gelf_fsize (main, ELF_T_SHDR, shnum, EV_CURRENT); in find_alloc_sections_prelink()
1139 const size_t shdr_bytes = shnum * shsize; in find_alloc_sections_prelink()
1147 undo_sections = xmalloc (shnum * sizeof undo_sections[0]); in find_alloc_sections_prelink()
1148 for (size_t i = 0; i < shnum; ++i) in find_alloc_sections_prelink()
1151 Elf32_Shdr (*s32)[shnum] = shdr; in find_alloc_sections_prelink()
1152 Elf64_Shdr (*s64)[shnum] = shdr; in find_alloc_sections_prelink()