Lines Matching refs:ainfo

409 add_file_shuffle (ainfo, head, tail, input_bfd, offset, size)  in add_file_shuffle()  argument
410 struct accumulate *ainfo; in add_file_shuffle()
426 if ((*tail)->size > ainfo->largest_file_shuffle)
427 ainfo->largest_file_shuffle = (*tail)->size;
431 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
448 if (size > ainfo->largest_file_shuffle)
449 ainfo->largest_file_shuffle = size;
460 add_memory_shuffle (ainfo, head, tail, data, size) in add_memory_shuffle() argument
461 struct accumulate *ainfo; in add_memory_shuffle()
469 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
498 struct accumulate *ainfo; local
501 ainfo = (struct accumulate *) bfd_malloc (amt);
502 if (!ainfo)
504 if (!bfd_hash_table_init_n (&ainfo->fdr_hash.table, string_hash_newfunc,
508 ainfo->line = NULL;
509 ainfo->line_end = NULL;
510 ainfo->pdr = NULL;
511 ainfo->pdr_end = NULL;
512 ainfo->sym = NULL;
513 ainfo->sym_end = NULL;
514 ainfo->opt = NULL;
515 ainfo->opt_end = NULL;
516 ainfo->aux = NULL;
517 ainfo->aux_end = NULL;
518 ainfo->ss = NULL;
519 ainfo->ss_end = NULL;
520 ainfo->ss_hash = NULL;
521 ainfo->ss_hash_end = NULL;
522 ainfo->fdr = NULL;
523 ainfo->fdr_end = NULL;
524 ainfo->rfd = NULL;
525 ainfo->rfd_end = NULL;
527 ainfo->largest_file_shuffle = 0;
531 if (!bfd_hash_table_init (&ainfo->str_hash.table, string_hash_newfunc,
539 ainfo->memory = objalloc_create ();
540 if (ainfo->memory == NULL)
546 return (PTR) ainfo;
559 struct accumulate *ainfo = (struct accumulate *) handle; local
561 bfd_hash_table_free (&ainfo->fdr_hash.table);
564 bfd_hash_table_free (&ainfo->str_hash.table);
566 objalloc_free (ainfo->memory);
568 free (ainfo);
592 struct accumulate *ainfo = (struct accumulate *) handle; local
671 rfd_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
677 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
722 fh = string_hash_lookup (&ainfo->fdr_hash, lookup, TRUE, TRUE);
772 fdr_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
778 if (!add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end, fdr_out, sz))
810 sym_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
816 if (!add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end, sym_out,
873 sh = string_hash_lookup (&ainfo->str_hash, name, TRUE, TRUE);
880 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
881 ainfo->ss_hash = sh;
882 if (ainfo->ss_hash_end
884 ainfo->ss_hash_end->next = sh;
885 ainfo->ss_hash_end = sh;
913 if (!add_file_shuffle (ainfo, &ainfo->line, &ainfo->line_end,
925 if (!add_file_shuffle (ainfo, &ainfo->aux, &ainfo->aux_end,
945 if (!add_file_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
964 if (!add_file_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end,
974 if (!add_file_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end,
995 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
1001 if (!add_memory_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end, out,
1019 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
1025 if (!add_memory_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end, out,
1070 ecoff_add_string (ainfo, info, debug, fdr, string) in ecoff_add_string() argument
1071 struct accumulate *ainfo; in ecoff_add_string()
1085 if (!add_memory_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end, (PTR) string,
1096 sh = string_hash_lookup (&ainfo->str_hash, string, TRUE, TRUE);
1103 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
1104 ainfo->ss_hash = sh;
1105 if (ainfo->ss_hash_end
1107 ainfo->ss_hash_end->next = sh;
1108 ainfo->ss_hash_end = sh;
1128 struct accumulate *ainfo = (struct accumulate *) handle; local
1154 fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1183 internal_sym.iss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1199 external_sym = (PTR) objalloc_alloc (ainfo->memory,
1207 add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end,
1220 external_fdr = (PTR) objalloc_alloc (ainfo->memory,
1228 add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end,
1633 struct accumulate *ainfo = (struct accumulate *) handle; local
1640 amt = ainfo->largest_file_shuffle;
1642 if (space == NULL && ainfo->largest_file_shuffle != 0)
1645 if (! ecoff_write_shuffle (abfd, swap, ainfo->line, space)
1646 || ! ecoff_write_shuffle (abfd, swap, ainfo->pdr, space)
1647 || ! ecoff_write_shuffle (abfd, swap, ainfo->sym, space)
1648 || ! ecoff_write_shuffle (abfd, swap, ainfo->opt, space)
1649 || ! ecoff_write_shuffle (abfd, swap, ainfo->aux, space))
1656 BFD_ASSERT (ainfo->ss_hash == (struct string_hash_entry *) NULL);
1657 if (! ecoff_write_shuffle (abfd, swap, ainfo->ss, space))
1666 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
1671 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
1672 for (sh = ainfo->ss_hash;
1728 if (! ecoff_write_shuffle (abfd, swap, ainfo->fdr, space)
1729 || ! ecoff_write_shuffle (abfd, swap, ainfo->rfd, space))
2501 struct accumulate *ainfo = (struct accumulate *) handle; local
2503 return ecoff_collect_shuffle (ainfo->pdr, buff);
2513 struct accumulate *ainfo = (struct accumulate *) handle; local
2515 return ecoff_collect_shuffle (ainfo->sym, buff);
2525 struct accumulate *ainfo = (struct accumulate *) handle; local
2531 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
2534 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
2535 for (sh = ainfo->ss_hash;