Lines Matching refs:sh_entsize
458 if (shdr->sh_entsize == 0)
459 error_exit (0, "REL section cannot have zero sh_entsize");
461 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
473 if (shdr->sh_entsize == 0)
474 error_exit (0, "RELA section cannot have zero sh_entsize");
476 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
503 if (shdr->sh_entsize == 0)
504 error_exit (0, "HASH section cannot have zero sh_entsize");
505 if (symshdr->sh_entsize == 0)
506 error_exit (0, "Symbol table cannot have zero sh_entsize");
507 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize;
508 const size_t onent = shdr->sh_size / shdr->sh_entsize;
542 switch (shdr->sh_entsize)
564 if (shdr->sh_entsize == 0)
565 error_exit (0, "GNU_versym section cannot have zero sh_entsize");
566 if (symshdr->sh_entsize == 0)
567 error_exit (0, "Symbol table cannot have zero sh_entsize");
568 const size_t nent = symshdr->sh_size / symshdr->sh_entsize;
569 const size_t onent = shdr->sh_size / shdr->sh_entsize;
633 if (shdr->sh_entsize == 0)
634 error_exit (0, "Symbol table section cannot have zero sh_entsize");
636 const size_t nsym = shdr->sh_size / shdr->sh_entsize;
640 shdr->sh_size += added * shdr->sh_entsize;
1197 COPY (sh_entsize);
1276 && sec->shdr.sh_entsize == undo_sec->shdr.sh_entsize
1282 && ((sec->shdr.sh_entsize == undo_sec->shdr.sh_entsize
1288 && RELA_SCALED (sh_entsize) && RELA_SCALED (sh_size))
1289 || (sec->shdr.sh_entsize == undo_sec->shdr.sh_entsize
1741 if (shdr_mem.sh_entsize == 0)
1743 "SYMTAB section cannot have zero sh_entsize");
1744 for (size_t i = 1; i < shdr_mem.sh_size / shdr_mem.sh_entsize; ++i)
1809 / (stripped_symtab->shdr.sh_entsize == 0
1811 : stripped_symtab->shdr.sh_entsize)));
1816 if (shdr->sh_entsize == 0)
1818 "unstripped SYMTAB section cannot have zero sh_entsize");
1819 const size_t unstripped_nsym = shdr->sh_size / shdr->sh_entsize;
1960 shdr->sh_size = symdata->d_size = (1 + nsym) * shdr->sh_entsize;