Lines Matching refs:cref_table
96 static struct cref_hash_table cref_table; variable
164 if (!bfd_hash_table_init (&cref_table.root, cref_hash_newfunc, in add_cref()
170 h = cref_hash_lookup (&cref_table, name, TRUE, FALSE); in add_cref()
180 r = bfd_hash_allocate (&cref_table.root, sizeof *r); in add_cref()
216 for (i = 0; i < cref_table.root.size; i++) in handle_asneeded_cref()
222 for (p = cref_table.root.table[i]; p != NULL; p = p->next) in handle_asneeded_cref()
224 entsize += cref_table.root.entsize; in handle_asneeded_cref()
231 tabsize = cref_table.root.size * sizeof (struct bfd_hash_entry *); in handle_asneeded_cref()
234 alloc_mark = bfd_hash_allocate (&cref_table.root, 1); in handle_asneeded_cref()
238 memcpy (old_tab, cref_table.root.table, tabsize); in handle_asneeded_cref()
241 old_table = cref_table.root.table; in handle_asneeded_cref()
242 old_size = cref_table.root.size; in handle_asneeded_cref()
243 old_count = cref_table.root.count; in handle_asneeded_cref()
246 for (i = 0; i < cref_table.root.size; i++) in handle_asneeded_cref()
252 for (p = cref_table.root.table[i]; p != NULL; p = p->next) in handle_asneeded_cref()
254 memcpy (old_ent, p, cref_table.root.entsize); in handle_asneeded_cref()
255 old_ent = (char *) old_ent + cref_table.root.entsize; in handle_asneeded_cref()
275 bfd_hash_table_free (&cref_table.root); in handle_asneeded_cref()
282 cref_table.root.table = old_table; in handle_asneeded_cref()
283 cref_table.root.size = old_size; in handle_asneeded_cref()
284 cref_table.root.count = old_count; in handle_asneeded_cref()
285 memcpy (cref_table.root.table, old_tab, tabsize); in handle_asneeded_cref()
288 for (i = 0; i < cref_table.root.size; i++) in handle_asneeded_cref()
294 for (p = cref_table.root.table[i]; p != NULL; p = p->next) in handle_asneeded_cref()
296 memcpy (p, old_ent, cref_table.root.entsize); in handle_asneeded_cref()
297 old_ent = (char *) old_ent + cref_table.root.entsize; in handle_asneeded_cref()
307 objalloc_free_block ((struct objalloc *) cref_table.root.memory, in handle_asneeded_cref()
382 cref_hash_traverse (&cref_table, cref_fill_array, &csym_fill); in output_cref()
468 cref_hash_traverse (&cref_table, check_nocrossref, NULL); in check_nocrossrefs()