Lines Matching refs:shnum
125 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum)
212 if (shnum > 0)
214 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *)))
218 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *));
226 char *const shdr_end = shdr_start + shnum * ehdr->e_shentsize;
237 for (size_t cnt = 0; cnt < shnum; ++cnt)
293 for (size_t cnt = 0; cnt < shnum; ++cnt)
440 for (size_t cnt = 0; cnt < shnum; ++cnt)
480 + ehdr->e_shentsize * shnum);
532 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
658 if (shnum > 0)
660 if (unlikely (shnum > SIZE_MAX / (sizeof (Elf_Scn *)
674 malloc (shnum * sizeof (ElfW2(LIBELFBITS,Shdr)));
688 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *));
697 for (size_t cnt = 0; cnt < shnum; ++cnt)
837 * shnum, shdr_offset)
838 != sizeof (ElfW2(LIBELFBITS,Shdr)) * shnum))