Lines Matching refs:amt

216       bfd_size_type amt = sizeof (struct coff_section_tdata);  in xcoff_get_section_contents()  local
218 sec->used_by_bfd = bfd_zalloc (abfd, amt); in xcoff_get_section_contents()
595 bfd_size_type amt = sizeof (* ret); in _bfd_xcoff_bfd_link_hash_table_create() local
597 ret = bfd_zmalloc (amt); in _bfd_xcoff_bfd_link_hash_table_create()
766 bfd_size_type amt = sizeof (* n); in xcoff_set_import_path() local
768 n = bfd_alloc (info->output_bfd, amt); in xcoff_set_import_path()
1226 bfd_size_type amt; in xcoff_link_add_symbols() local
1261 amt = symcount * sizeof (struct xcoff_link_hash_entry *); in xcoff_link_add_symbols()
1262 sym_hash = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1270 amt = symcount * sizeof (asection *); in xcoff_link_add_symbols()
1271 csect_cache = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1279 amt = symcount * sizeof (unsigned int); in xcoff_link_add_symbols()
1280 lineno_counts = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1290 amt = abfd->section_count + 1; in xcoff_link_add_symbols()
1291 amt *= sizeof (struct reloc_info_struct); in xcoff_link_add_symbols()
1292 reloc_info = bfd_zmalloc (amt); in xcoff_link_add_symbols()
1307 amt = o->reloc_count; in xcoff_link_add_symbols()
1308 amt *= sizeof (asection *); in xcoff_link_add_symbols()
1309 reloc_info[o->target_index].csects = bfd_zmalloc (amt); in xcoff_link_add_symbols()
1319 amt = linesz * o->lineno_count; in xcoff_link_add_symbols()
1320 linenos = bfd_malloc (amt); in xcoff_link_add_symbols()
1325 || bfd_bread (linenos, amt, abfd) != amt) in xcoff_link_add_symbols()
1567 amt = enclosing->reloc_count; in xcoff_link_add_symbols()
1568 relindx = xcoff_find_reloc (relocs, amt, sym.n_value); in xcoff_link_add_symbols()
1688 amt = sizeof (struct coff_section_tdata); in xcoff_link_add_symbols()
1689 csect->used_by_bfd = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1692 amt = sizeof (struct xcoff_section_tdata); in xcoff_link_add_symbols()
1693 coff_section_data (abfd, csect)->tdata = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1708 amt = enclosing->reloc_count; in xcoff_link_add_symbols()
1709 relindx = xcoff_find_reloc (relocs, amt, csect->vma); in xcoff_link_add_symbols()
1821 amt = sizeof (struct coff_section_tdata); in xcoff_link_add_symbols()
1822 csect->used_by_bfd = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1825 amt = sizeof (struct xcoff_section_tdata); in xcoff_link_add_symbols()
1826 coff_section_data (abfd, csect)->tdata = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
2512 bfd_size_type amt; in xcoff_find_function() local
2514 amt = strlen (h->root.root.string) + 2; in xcoff_find_function()
2515 fnname = bfd_malloc (amt); in xcoff_find_function()
3039 bfd_size_type amt; in bfd_xcoff_link_record_set() local
3047 amt = sizeof (* n); in bfd_xcoff_link_record_set()
3048 n = bfd_alloc (output_bfd, amt); in bfd_xcoff_link_record_set()
3290 bfd_size_type amt; in xcoff_build_ldsym() local
3317 amt = sizeof (struct internal_ldsym); in xcoff_build_ldsym()
3318 h->ldsym = bfd_zalloc (ldinfo->output_bfd, amt); in xcoff_build_ldsym()
3638 bfd_size_type amt; in bfd_xcoff_size_dynamic_sections() local
3684 amt = sizeof (* ldsym); in bfd_xcoff_size_dynamic_sections()
3685 ldsym = bfd_malloc (amt); in bfd_xcoff_size_dynamic_sections()
4605 bfd_size_type amt; in xcoff_link_input_bfd() local
4615 amt = linesz * enc_count; in xcoff_link_input_bfd()
4617 || (bfd_bread (flinfo->linenos, amt, input_bfd) in xcoff_link_input_bfd()
4618 != amt)) in xcoff_link_input_bfd()
4647 amt = linesz * *lineno_counts; in xcoff_link_input_bfd()
4650 amt, output_bfd) != amt) in xcoff_link_input_bfd()
4738 bfd_size_type amt = outsym - flinfo->outsyms; in xcoff_link_input_bfd() local
4740 || bfd_bwrite (flinfo->outsyms, amt, output_bfd) != amt) in xcoff_link_input_bfd()
4856 bfd_size_type amt; in xcoff_link_input_bfd() local
4858 amt = sizeof (* n); in xcoff_link_input_bfd()
4859 n = bfd_alloc (flinfo->output_bfd, amt); in xcoff_link_input_bfd()
5163 bfd_size_type amt; in xcoff_write_global_symbol() local
5412 amt = outsym - flinfo->outsyms; in xcoff_write_global_symbol()
5414 || bfd_bwrite (flinfo->outsyms, amt, output_bfd) != amt) in xcoff_write_global_symbol()
5667 amt = outsym - flinfo->outsyms; in xcoff_write_global_symbol()
5669 || bfd_bwrite (flinfo->outsyms, amt, output_bfd) != amt) in xcoff_write_global_symbol()
5831 bfd_size_type amt; in _bfd_xcoff_bfd_final_link() local
6027 amt = abfd->section_count + 1; in _bfd_xcoff_bfd_final_link()
6028 amt *= sizeof (struct xcoff_link_section_info); in _bfd_xcoff_bfd_final_link()
6029 flinfo.section_info = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6075 amt = o->reloc_count; in _bfd_xcoff_bfd_final_link()
6076 amt *= sizeof (struct internal_reloc); in _bfd_xcoff_bfd_final_link()
6077 flinfo.section_info[o->target_index].relocs = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6079 amt = o->reloc_count; in _bfd_xcoff_bfd_final_link()
6080 amt *= sizeof (struct xcoff_link_hash_entry *); in _bfd_xcoff_bfd_final_link()
6081 flinfo.section_info[o->target_index].rel_hashes = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6131 amt = max_sym_count * sizeof (struct internal_syment); in _bfd_xcoff_bfd_final_link()
6132 flinfo.internal_syms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6134 amt = max_sym_count * sizeof (long); in _bfd_xcoff_bfd_final_link()
6135 flinfo.sym_indices = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6137 amt = (max_sym_count + 1) * symesz; in _bfd_xcoff_bfd_final_link()
6138 flinfo.outsyms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6140 amt = max_lineno_count * bfd_coff_linesz (abfd); in _bfd_xcoff_bfd_final_link()
6141 flinfo.linenos = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6143 amt = max_contents_size; in _bfd_xcoff_bfd_final_link()
6144 flinfo.contents = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6146 amt = max_reloc_count * relsz; in _bfd_xcoff_bfd_final_link()
6147 flinfo.external_relocs = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6250 amt = max_output_reloc_count * relsz; in _bfd_xcoff_bfd_final_link()
6251 external_relocs = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6390 amt = STRING_SIZE_SIZE; in _bfd_xcoff_bfd_final_link()
6391 if (bfd_bwrite (strbuf, amt, abfd) != amt) in _bfd_xcoff_bfd_final_link()