Lines Matching defs:ainfo

412 add_file_shuffle (ainfo, head, tail, input_bfd, offset, size)
413 struct accumulate *ainfo;
429 if ((*tail)->size > ainfo->largest_file_shuffle)
430 ainfo->largest_file_shuffle = (*tail)->size;
434 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
451 if (size > ainfo->largest_file_shuffle)
452 ainfo->largest_file_shuffle = size;
463 add_memory_shuffle (ainfo, head, tail, data, size)
464 struct accumulate *ainfo;
472 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
501 struct accumulate *ainfo;
504 ainfo = (struct accumulate *) bfd_malloc (amt);
505 if (!ainfo)
507 if (!bfd_hash_table_init_n (&ainfo->fdr_hash.table, string_hash_newfunc,
511 ainfo->line = NULL;
512 ainfo->line_end = NULL;
513 ainfo->pdr = NULL;
514 ainfo->pdr_end = NULL;
515 ainfo->sym = NULL;
516 ainfo->sym_end = NULL;
517 ainfo->opt = NULL;
518 ainfo->opt_end = NULL;
519 ainfo->aux = NULL;
520 ainfo->aux_end = NULL;
521 ainfo->ss = NULL;
522 ainfo->ss_end = NULL;
523 ainfo->ss_hash = NULL;
524 ainfo->ss_hash_end = NULL;
525 ainfo->fdr = NULL;
526 ainfo->fdr_end = NULL;
527 ainfo->rfd = NULL;
528 ainfo->rfd_end = NULL;
530 ainfo->largest_file_shuffle = 0;
534 if (!bfd_hash_table_init (&ainfo->str_hash.table, string_hash_newfunc,
542 ainfo->memory = objalloc_create ();
543 if (ainfo->memory == NULL)
549 return (PTR) ainfo;
562 struct accumulate *ainfo = (struct accumulate *) handle;
564 bfd_hash_table_free (&ainfo->fdr_hash.table);
567 bfd_hash_table_free (&ainfo->str_hash.table);
569 objalloc_free (ainfo->memory);
571 free (ainfo);
595 struct accumulate *ainfo = (struct accumulate *) handle;
674 rfd_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
680 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
725 fh = string_hash_lookup (&ainfo->fdr_hash, lookup, TRUE, TRUE);
775 fdr_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
781 if (!add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end, fdr_out, sz))
813 sym_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
819 if (!add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end, sym_out,
876 sh = string_hash_lookup (&ainfo->str_hash, name, TRUE, TRUE);
883 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
884 ainfo->ss_hash = sh;
885 if (ainfo->ss_hash_end
887 ainfo->ss_hash_end->next = sh;
888 ainfo->ss_hash_end = sh;
916 if (!add_file_shuffle (ainfo, &ainfo->line, &ainfo->line_end,
928 if (!add_file_shuffle (ainfo, &ainfo->aux, &ainfo->aux_end,
948 if (!add_file_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
967 if (!add_file_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end,
977 if (!add_file_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end,
998 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
1004 if (!add_memory_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end, out,
1022 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
1028 if (!add_memory_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end, out,
1073 ecoff_add_string (ainfo, info, debug, fdr, string)
1074 struct accumulate *ainfo;
1088 if (!add_memory_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end, (PTR) string,
1099 sh = string_hash_lookup (&ainfo->str_hash, string, TRUE, TRUE);
1106 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
1107 ainfo->ss_hash = sh;
1108 if (ainfo->ss_hash_end
1110 ainfo->ss_hash_end->next = sh;
1111 ainfo->ss_hash_end = sh;
1131 struct accumulate *ainfo = (struct accumulate *) handle;
1157 fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1186 internal_sym.iss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1202 external_sym = (PTR) objalloc_alloc (ainfo->memory,
1210 add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end,
1223 external_fdr = (PTR) objalloc_alloc (ainfo->memory,
1231 add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end,
1636 struct accumulate *ainfo = (struct accumulate *) handle;
1643 amt = ainfo->largest_file_shuffle;
1645 if (space == NULL && ainfo->largest_file_shuffle != 0)
1648 if (! ecoff_write_shuffle (abfd, swap, ainfo->line, space)
1649 || ! ecoff_write_shuffle (abfd, swap, ainfo->pdr, space)
1650 || ! ecoff_write_shuffle (abfd, swap, ainfo->sym, space)
1651 || ! ecoff_write_shuffle (abfd, swap, ainfo->opt, space)
1652 || ! ecoff_write_shuffle (abfd, swap, ainfo->aux, space))
1659 BFD_ASSERT (ainfo->ss_hash == (struct string_hash_entry *) NULL);
1660 if (! ecoff_write_shuffle (abfd, swap, ainfo->ss, space))
1669 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
1674 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
1675 for (sh = ainfo->ss_hash;
1731 if (! ecoff_write_shuffle (abfd, swap, ainfo->fdr, space)
1732 || ! ecoff_write_shuffle (abfd, swap, ainfo->rfd, space))
2506 struct accumulate *ainfo = (struct accumulate *) handle;
2508 return ecoff_collect_shuffle (ainfo->pdr, buff);
2518 struct accumulate *ainfo = (struct accumulate *) handle;
2520 return ecoff_collect_shuffle (ainfo->sym, buff);
2530 struct accumulate *ainfo = (struct accumulate *) handle;
2536 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
2539 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
2540 for (sh = ainfo->ss_hash;