Home | History | Annotate | Download | only in bfd

Lines Matching defs:ainfo

399 add_file_shuffle (struct accumulate *ainfo,
415 if ((*tail)->size > ainfo->largest_file_shuffle)
416 ainfo->largest_file_shuffle = (*tail)->size;
420 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
437 if (size > ainfo->largest_file_shuffle)
438 ainfo->largest_file_shuffle = size;
445 add_memory_shuffle (struct accumulate *ainfo,
453 n = (struct shuffle *) objalloc_alloc (ainfo->memory,
481 struct accumulate *ainfo;
484 ainfo = (struct accumulate *) bfd_malloc (amt);
485 if (!ainfo)
487 if (!bfd_hash_table_init_n (&ainfo->fdr_hash.table, string_hash_newfunc,
491 ainfo->line = NULL;
492 ainfo->line_end = NULL;
493 ainfo->pdr = NULL;
494 ainfo->pdr_end = NULL;
495 ainfo->sym = NULL;
496 ainfo->sym_end = NULL;
497 ainfo->opt = NULL;
498 ainfo->opt_end = NULL;
499 ainfo->aux = NULL;
500 ainfo->aux_end = NULL;
501 ainfo->ss = NULL;
502 ainfo->ss_end = NULL;
503 ainfo->ss_hash = NULL;
504 ainfo->ss_hash_end = NULL;
505 ainfo->fdr = NULL;
506 ainfo->fdr_end = NULL;
507 ainfo->rfd = NULL;
508 ainfo->rfd_end = NULL;
510 ainfo->largest_file_shuffle = 0;
514 if (!bfd_hash_table_init (&ainfo->str_hash.table, string_hash_newfunc,
522 ainfo->memory = objalloc_create ();
523 if (ainfo->memory == NULL)
529 return ainfo;
541 struct accumulate *ainfo = (struct accumulate *) handle;
543 bfd_hash_table_free (&ainfo->fdr_hash.table);
546 bfd_hash_table_free (&ainfo->str_hash.table);
548 ainfo->memory);
550 free (ainfo);
571 struct accumulate *ainfo = (struct accumulate *) handle;
650 rfd_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
656 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
702 fh = string_hash_lookup (&ainfo->fdr_hash, lookup, true, true);
751 fdr_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
757 if (!add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end, fdr_out, sz))
789 sym_out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
795 if (!add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end, sym_out,
852 sh = string_hash_lookup (&ainfo->str_hash, name, true, true);
859 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
860 ainfo->ss_hash = sh;
861 if (ainfo->ss_hash_end
863 ainfo->ss_hash_end->next = sh;
864 ainfo->ss_hash_end = sh;
892 if (!add_file_shuffle (ainfo, &ainfo->line, &ainfo->line_end,
904 if (!add_file_shuffle (ainfo, &ainfo->aux, &ainfo->aux_end,
924 if (!add_file_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
943 if (!add_file_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end,
953 if (!add_file_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end,
974 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
980 if (!add_memory_shuffle (ainfo, &ainfo->pdr, &ainfo->pdr_end, out,
998 out = (bfd_byte *) objalloc_alloc (ainfo->memory, sz);
1004 if (!add_memory_shuffle (ainfo, &ainfo->opt, &ainfo->opt_end, out,
1045 ecoff_add_string (struct accumulate *ainfo,
1059 if (!add_memory_shuffle (ainfo, &ainfo->ss, &ainfo->ss_end,
1070 sh = string_hash_lookup (&ainfo->str_hash, string, true, true);
1077 if (ainfo->ss_hash == (struct string_hash_entry *) NULL)
1078 ainfo->ss_hash = sh;
1079 ainfo->ss_hash_end
1081 ainfo->ss_hash_end->next = sh;
1082 ainfo->ss_hash_end = sh;
1100 struct accumulate *ainfo = (struct accumulate *) handle;
1126 fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1155 internal_sym.iss = ecoff_add_string (ainfo, info, output_debug, &fdr,
1171 external_sym = objalloc_alloc (ainfo->memory,
1179 add_memory_shuffle (ainfo, &ainfo->sym, &ainfo->sym_end,
1192 external_fdr = objalloc_alloc (ainfo->memory,
1200 add_memory_shuffle (ainfo, &ainfo->fdr, &ainfo->fdr_end,
1589 struct accumulate *ainfo = (struct accumulate *) handle;
1596 amt = ainfo->largest_file_shuffle;
1598 if (space == NULL && ainfo->largest_file_shuffle != 0)
1601 if (! ecoff_write_shuffle (abfd, swap, ainfo->line, space)
1602 || ! ecoff_write_shuffle (abfd, swap, ainfo->pdr, space)
1603 || ! ecoff_write_shuffle (abfd, swap, ainfo->sym, space)
1604 || ! ecoff_write_shuffle (abfd, swap, ainfo->opt, space)
1605 || ! ecoff_write_shuffle (abfd, swap, ainfo->aux, space))
1612 BFD_ASSERT (ainfo->ss_hash == (struct string_hash_entry *) NULL);
1613 if (! ecoff_write_shuffle (abfd, swap, ainfo->ss, space))
1622 BFD_ASSERT (ainfo->ss == NULL);
1627 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
1628 for (sh = ainfo->ss_hash; sh != NULL; sh = sh->next)
1682 if (! ecoff_write_shuffle (abfd, swap, ainfo->fdr, space)
1683 || ! ecoff_write_shuffle (abfd, swap, ainfo->rfd, space))
2546 struct accumulate *ainfo = (struct accumulate *) handle;
2548 return ecoff_collect_shuffle (ainfo->pdr, buff);
2556 struct accumulate *ainfo = (struct accumulate *) handle;
2558 return ecoff_collect_shuffle (ainfo->sym, buff);
2566 struct accumulate *ainfo = (struct accumulate *) handle;
2571 BFD_ASSERT (ainfo->ss == (struct shuffle *) NULL);
2573 BFD_ASSERT (ainfo->ss_hash == NULL || ainfo->ss_hash->val == 1);
2574 for (sh = ainfo->ss_hash;