Home | History | Annotate | Download | only in libelf

Lines Matching full:shnum

129 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum)
226 if (shnum > 0)
228 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *)))
232 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *));
255 for (size_t cnt = 0; cnt < shnum; ++cnt)
309 for (size_t cnt = 0; cnt < shnum; ++cnt)
419 for (size_t cnt = 0; cnt < shnum; ++cnt)
459 + ehdr->e_shentsize * shnum);
511 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
647 if (shnum > 0)
649 if (unlikely (shnum > SIZE_MAX / (sizeof (Elf_Scn *)
667 malloc (shnum * sizeof (ElfW2(LIBELFBITS,Shdr)));
681 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *));
690 for (size_t cnt = 0; cnt < shnum; ++cnt)
835 * shnum, shdr_offset)
836 != sizeof (ElfW2(LIBELFBITS,Shdr)) * shnum))