Lines Matching refs:ainfo
389 add_file_shuffle (struct accumulate *ainfo,
405 if ((*tail)->size > ainfo->largest_file_shuffle)
406 ainfo->largest_file_shuffle = (*tail)->size;
410 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
427 if (size > ainfo->largest_file_shuffle)
428 ainfo->largest_file_shuffle = size;
435 add_memory_shuffle (struct accumulate *ainfo,
443 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
471 struct accumulate *ainfo;
474 ainfo = (struct accumulate *) bfd_malloc (amt);
475 if (!ainfo)
477 if (!bfd_hash_table_init_n (&ainfo->fdr_hash.table, string_hash_newfunc,
481 ainfo->line = NULL;
482 ainfo->line_end = NULL;
483 ainfo->pdr = NULL;
484 ainfo->pdr_end = NULL;
485 ainfo->sym = NULL;
486 ainfo->sym_end = NULL;
487 ainfo->opt = NULL;
488 ainfo->opt_end = NULL;
489 ainfo->aux = NULL;
490 ainfo->aux_end = NULL;
491 ainfo->ss = NULL;
492 ainfo->ss_end = NULL;
493 ainfo->ss_hash = NULL;
494 ainfo->ss_hash_end = NULL;
495 ainfo->fdr = NULL;
496 ainfo->fdr_end = NULL;
497 ainfo->rfd = NULL;
498 ainfo->rfd_end = NULL;
500 ainfo->largest_file_shuffle = 0;
504 if (!bfd_hash_table_init (&ainfo->str_hash.table, string_hash_newfunc,
512 ainfo->memory = objalloc_create ();
513 if (ainfo->memory == NULL)
519 return ainfo;
531 struct accumulate *ainfo = (struct accumulate *) handle;
533 bfd_hash_table_free (&ainfo->fdr_hash.table);
536 bfd_hash_table_free (&ainfo->str_hash.table);
538 objalloc_free (ainfo->memory);
540 free (ainfo);
561 struct accumulate *ainfo = (struct accumulate *) handle;
640 rfd_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
646 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
692 fh = string_hash_lookup (&ainfo->fdr_hash, lookup, true, true);
741 fdr_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
747 if (!add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end, fdr_out, sz))
779 sym_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
785 if (!add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end, sym_out,
842 sh = string_hash_lookup (&ainfo->str_hash, name, true, true);
849 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
850 ainfo->ss_hash = sh;
851 if (ainfo->ss_hash_end
853 ainfo->ss_hash_end->next = sh;
854 ainfo->ss_hash_end = sh;
882 if (!add_file_shuffle (ainfo, &ainfo->line, &ainfo->line_end,
894 if (!add_file_shuffle (ainfo, &ainfo->aux, &ainfo->aux_end,
914 if (!add_file_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
933 if (!add_file_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end,
943 if (!add_file_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end,
964 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
970 if (!add_memory_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end, out,
988 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
994 if (!add_memory_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end, out,
1035 ecoff_add_string (struct accumulate *ainfo,
1049 if (!add_memory_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
1060 sh = string_hash_lookup (&ainfo->str_hash, string, true, true);
1067 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
1068 ainfo->ss_hash = sh;
1069 if (ainfo->ss_hash_end
1071 ainfo->ss_hash_end->next = sh;
1072 ainfo->ss_hash_end = sh;
1090 struct accumulate *ainfo = (struct accumulate *) handle;
1116 fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1145 internal_sym.iss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1161 external_sym = objalloc_alloc (ainfo->memory,
1169 add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end,
1182 external_fdr = objalloc_alloc (ainfo->memory,
1190 add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end,
1579 struct accumulate *ainfo = (struct accumulate *) handle;
1586 amt = ainfo->largest_file_shuffle;
1588 if (space == NULL && ainfo->largest_file_shuffle != 0)
1591 if (! ecoff_write_shuffle (abfd, swap, ainfo->line, space)
1592 || ! ecoff_write_shuffle (abfd, swap, ainfo->pdr, space)
1593 || ! ecoff_write_shuffle (abfd, swap, ainfo->sym, space)
1594 || ! ecoff_write_shuffle (abfd, swap, ainfo->opt, space)
1595 || ! ecoff_write_shuffle (abfd, swap, ainfo->aux, space))
1602 BFD_ASSERT (ainfo->ss_hash == (struct string_hash_entry *) NULL);
1603 if (! ecoff_write_shuffle (abfd, swap, ainfo->ss, space))
1612 BFD_ASSERT (ainfo->ss == NULL);
1617 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
1618 for (sh = ainfo->ss_hash; sh != NULL; sh = sh->next)
1672 if (! ecoff_write_shuffle (abfd, swap, ainfo->fdr, space)
1673 || ! ecoff_write_shuffle (abfd, swap, ainfo->rfd, space))
2536 struct accumulate *ainfo = (struct accumulate *) handle;
2538 return ecoff_collect_shuffle (ainfo->pdr, buff);
2546 struct accumulate *ainfo = (struct accumulate *) handle;
2548 return ecoff_collect_shuffle (ainfo->sym, buff);
2556 struct accumulate *ainfo = (struct accumulate *) handle;
2561 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
2563 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
2564 for (sh = ainfo->ss_hash;