Lines Matching refs:size_t

238   size_t shstrndx;
263 size_t phnum;
273 for (size_t i = 0; i < phnum; ++i)
381 static size_t
382 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum,
388 for (size_t i = 1; i < shnum; ++i)
437 size_t map[], size_t map_size)
439 size_t ndx = GELF_R_SYM (*info);
451 size_t map[], size_t map_size, const GElf_Shdr *symshdr)
461 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
476 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i)
507 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize;
508 const size_t onent = shdr->sh_size / shdr->sh_entsize;
515 const size_t nbucket = old_hash[0]; \
516 const size_t nchain = old_hash[1]; \
522 const size_t nent = 2 + nbucket + nsym; \
529 for (size_t i = 0; i < nbucket; ++i) \
533 for (size_t i = 1; i < nchain; ++i) \
568 const size_t nent = symshdr->sh_size / symshdr->sh_entsize;
569 const size_t onent = shdr->sh_size / shdr->sh_entsize;
578 for (size_t i = 1; i < onent; ++i)
602 size_t map[], size_t map_size)
604 size_t new_sh_link = elf_ndxscn (symtab);
625 add_new_section_symbols (Elf_Scn *old_symscn, size_t old_shnum,
626 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum)
628 const size_t added = shnum - old_shnum;
636 const size_t nsym = shdr->sh_size / shdr->sh_entsize;
637 size_t symndx_map[nsym - 1];
652 for (size_t i = 0; i < old_shnum; ++i)
668 for (size_t i = old_shnum; i < shnum; ++i)
686 for (size_t i = old_shnum; i < nsym; ++i)
710 size_t shnum, size_t shstrndx,
711 Elf_Scn *oscn, size_t oshnum, size_t oshstrndx,
712 size_t debuglink)
714 size_t n = symtab_count_leading_section_symbols (elf, oscn, oshnum,
811 size_t *map;
838 size_t *duplicate;
845 const size_t nent, const GElf_Addr bias,
846 const size_t scnmap[], struct symbol *table, size_t *map,
855 for (size_t i = 1; i < nent; ++i)
982 sections_match (const struct section *sections, size_t i,
996 struct section sections[], size_t nalloc)
999 size_t l = 0, u = nalloc;
1002 size_t i = (l + u) / 2;
1024 get_section_name (size_t ndx, const GElf_Shdr *shdr, const Elf_Data *shstrtab)
1094 size_t nalloc, size_t nsections)
1097 for (size_t i = nalloc; i < nsections; ++i)
1111 size_t undo_nalloc = 0;
1115 for (size_t i = 0; i < nalloc; ++i)
1155 size_t shsize = class32 ? sizeof (Elf32_Shdr) : sizeof (Elf64_Shdr);
1158 (size_t) shnum, ".gnu.prelink_undo");
1162 size_t phsize = gelf_fsize (main, ELF_T_PHDR, phnum, EV_CURRENT);
1166 if ((size_t) (src.d_buf - undodata->d_buf) > undodata->d_size
1171 const size_t shdr_bytes = shnum * shsize;
1180 for (size_t i = 0; i < shnum; ++i)
1246 for (size_t i = 0; shdr != NULL && i < nalloc; ++i)
1259 for (size_t i = 0; i < undo_nalloc; ++i)
1266 for (size_t j = 0; j < nalloc; ++j)
1320 new_shstrtab (Elf *unstripped, size_t unstripped_shnum,
1321 Elf_Data *shstrtab, size_t unstripped_shstrndx,
1322 struct section *sections, size_t stripped_shnum,
1345 for (size_t i = 0; i < unstripped_shnum - 1; ++i)
1369 for (size_t i = 0; i < unstripped_shnum - 1; ++i)
1391 size_t unstripped_shstrndx;
1395 size_t stripped_shstrndx;
1399 size_t unstripped_shnum;
1403 size_t stripped_shnum;
1429 size_t i = elf_ndxscn (scn) - 1;
1449 size_t nalloc = stripped_shnum - 1;
1465 size_t unstripped_strndx = 0;
1466 size_t alloc_avail = 0;
1481 const size_t ndx = elf_ndxscn (scn);
1508 for (size_t i = alloc_avail + 1; i < nalloc; ++i)
1520 size_t l = nalloc, u = stripped_shnum - 1;
1523 size_t i = (l + u) / 2;
1579 size_t debuglink = SHN_UNDEF;
1580 size_t ndx_sec_num = stripped_shnum - 1;
1581 size_t ndx_section[ndx_sec_num];
1587 size_t secndx = elf_ndxscn (sec->scn);
1744 for (size_t i = 1; i < shdr_mem.sh_size / shdr_mem.sh_entsize; ++i)
1788 for (size_t i = 1; i < shdr_mem.sh_size / sizeof (Elf32_Word); ++i)
1807 const size_t stripped_nsym = (stripped_symtab == NULL ? 1
1819 const size_t unstripped_nsym = shdr->sh_size / shdr->sh_entsize;
1823 const size_t total_syms = stripped_nsym - 1 + unstripped_nsym - 1;
1825 size_t *symndx_map = xmalloc (total_syms * sizeof (size_t));
1846 size_t nsym = 0;
1885 for (size_t i = 0; i < nsym; ++i)
1895 for (size_t i = nsym; i < total_syms; ++i)
1918 for (size_t i = 0; i < unstripped_shnum - 1; ++i)
1945 for (size_t i = 0; i < unstripped_shnum - 1; ++i)
1970 for (size_t i = 0; i < nsym; ++i)
2000 const size_t old_sh_link = elf_ndxscn (stripped_symtab->scn);
2050 for (size_t i = 0; i < unstripped_shnum - 1; ++i)
2103 size_t phnum;
2112 for (size_t i = 0; i < phnum; ++i)
2146 size_t phnum;
2154 for (size_t i = 0; i < phnum; ++i)