• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/binutils/bfd/

Lines Matching refs:tab

129 _bfd_elf_strtab_free (struct elf_strtab_hash *tab)
131 bfd_hash_table_free (&tab->table);
132 free (tab->array);
133 free (tab);
140 _bfd_elf_strtab_add (struct elf_strtab_hash *tab,
151 BFD_ASSERT (tab->sec_size == 0);
153 bfd_hash_lookup (&tab->table, str, TRUE, copy);
164 if (tab->size == tab->alloced)
167 tab->alloced *= 2;
168 tab->array = bfd_realloc (tab->array, tab->alloced * amt);
169 if (tab->array == NULL)
173 entry->u.index = tab->size++;
174 tab->array[entry->u.index] = entry;
180 _bfd_elf_strtab_addref (struct elf_strtab_hash *tab, bfd_size_type idx)
184 BFD_ASSERT (tab->sec_size == 0);
185 BFD_ASSERT (idx < tab->size);
186 ++tab->array[idx]->refcount;
190 _bfd_elf_strtab_delref (struct elf_strtab_hash *tab, bfd_size_type idx)
194 BFD_ASSERT (tab->sec_size == 0);
195 BFD_ASSERT (idx < tab->size);
196 BFD_ASSERT (tab->array[idx]->refcount > 0);
197 --tab->array[idx]->refcount;
201 _bfd_elf_strtab_clear_all_refs (struct elf_strtab_hash *tab)
205 for (idx = 1; idx < tab->size; ++idx)
206 tab->array[idx]->refcount = 0;
210 _bfd_elf_strtab_size (struct elf_strtab_hash *tab)
212 return tab->sec_size ? tab->sec_size : tab->size;
216 _bfd_elf_strtab_offset (struct elf_strtab_hash *tab, bfd_size_type idx)
222 BFD_ASSERT (idx < tab->size);
223 BFD_ASSERT (tab->sec_size);
224 entry = tab->array[idx];
227 return tab->array[idx]->u.index;
231 _bfd_elf_strtab_emit (register bfd *abfd, struct elf_strtab_hash *tab)
238 for (i = 1; i < tab->size; ++i)
243 BFD_ASSERT (tab->array[i]->refcount == 0);
244 len = tab->array[i]->len;
248 str = tab->array[i]->root.string;
255 BFD_ASSERT (off == tab->sec_size);
300 _bfd_elf_strtab_finalize (struct elf_strtab_hash *tab)
312 amt = tab->size * sizeof (struct elf_strtab_hash_entry *);
317 for (i = 1, a = array; i < tab->size; ++i)
319 e = tab->array[i];
372 for (i = 1; i < tab->size; ++i)
374 e = tab->array[i];
382 tab->sec_size = size;
385 for (i = 1; i < tab->size; ++i)
387 e = tab->array[i];