Lines Matching refs:amt

1428 	  bfd_size_type amt = sizeof (int);  in hppa_som_gen_reloc_type()  local
1430 final_types[0] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1431 final_types[1] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1432 final_types[2] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1433 final_types[3] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1512 bfd_size_type amt = sizeof (int); in hppa_som_gen_reloc_type() local
1514 final_types[0] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1515 final_types[1] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1516 final_types[2] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1517 final_types[3] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
1551 bfd_size_type amt = sizeof (int); in hppa_som_gen_reloc_type() local
1553 final_types[0] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type()
2082 bfd_size_type amt; in setup_sections() local
2085 amt = file_hdr->space_strings_size; in setup_sections()
2086 space_strings = bfd_malloc (amt); in setup_sections()
2087 if (!space_strings && amt != 0) in setup_sections()
2093 if (bfd_bread (space_strings, amt, abfd) != amt) in setup_sections()
2115 amt = sizeof ext_space; in setup_sections()
2116 if (bfd_bread (&ext_space, amt, abfd) != amt) in setup_sections()
2125 amt = strlen (space_name) + 1; in setup_sections()
2126 newname = bfd_alloc (abfd, amt); in setup_sections()
2154 amt = sizeof ext_subspace; in setup_sections()
2155 if (bfd_bread (&ext_subspace, amt, abfd) != amt) in setup_sections()
2186 amt = sizeof ext_subspace; in setup_sections()
2187 if (bfd_bread (&ext_subspace, amt, abfd) != amt) in setup_sections()
2195 amt = strlen (subspace_name) + 1; in setup_sections()
2196 newname = bfd_alloc (abfd, amt); in setup_sections()
2337 amt = total_subspaces; in setup_sections()
2338 amt *= sizeof (asection *); in setup_sections()
2339 subspace_sections = bfd_malloc (amt); in setup_sections()
2388 bfd_size_type amt; in som_object_p() local
2392 amt = sizeof (struct som_external_header); in som_object_p()
2393 if (bfd_bread (&ext_file_hdr, amt, abfd) != amt) in som_object_p()
2431 amt = sizeof (struct som_external_lst_header); in som_object_p()
2432 if (bfd_bread (&ext_lst_header, amt, abfd) != amt) in som_object_p()
2448 amt = ENTRY_SIZE; in som_object_p()
2449 if (bfd_bread (&ext_som_entry, amt, abfd) != amt) in som_object_p()
2466 amt = sizeof (struct som_external_header); in som_object_p()
2467 if (bfd_bread (&ext_file_hdr, amt, abfd) != amt) in som_object_p()
2501 amt = sizeof (struct som_external_exec_auxhdr); in som_object_p()
2502 if (bfd_bread (&ext_exec_auxhdr, amt, abfd) != amt) in som_object_p()
2543 bfd_size_type amt = sizeof (struct som_header); in som_prep_headers() local
2546 file_hdr = bfd_zalloc (abfd, amt); in som_prep_headers()
2554 amt = sizeof (struct som_exec_auxhdr); in som_prep_headers()
2555 obj_som_exec_hdr (abfd) = bfd_zalloc (abfd, amt); in som_prep_headers()
2596 amt = sizeof (struct som_space_dictionary_record); in som_prep_headers()
2597 som_section_data (section)->space_dict = bfd_zalloc (abfd, amt); in som_prep_headers()
2618 amt = sizeof (struct som_subspace_dictionary_record); in som_prep_headers()
2619 som_section_data (section)->subspace_dict = bfd_zalloc (abfd, amt); in som_prep_headers()
2799 bfd_size_type amt; in som_prep_for_fixups() local
2871 amt = num_syms; in som_prep_for_fixups()
2872 amt *= sizeof (asymbol *); in som_prep_for_fixups()
2873 sorted_syms = bfd_zalloc (abfd, amt); in som_prep_for_fixups()
2905 bfd_size_type amt; in som_write_fixups() local
2997 amt = p - tmp_space; in som_write_fixups()
2998 if (bfd_bwrite ((void *) tmp_space, amt, abfd) != amt) in som_write_fixups()
3282 amt = p - tmp_space; in som_write_fixups()
3283 if (bfd_bwrite ((void *) tmp_space, amt, abfd) != amt) in som_write_fixups()
3311 bfd_size_type amt; in som_write_space_strings() local
3339 amt = p - tmp_space; in som_write_space_strings()
3340 if (bfd_bwrite ((void *) &tmp_space[0], amt, abfd) != amt) in som_write_space_strings()
3393 amt = p - tmp_space; in som_write_space_strings()
3394 if (bfd_bwrite ((void *) &tmp_space[0], amt, abfd) != amt) in som_write_space_strings()
3419 bfd_size_type amt; in som_write_symbol_strings() local
3466 amt = p - tmp_space; in som_write_symbol_strings()
3467 if (bfd_bwrite ((void *) &tmp_space[0], amt, abfd) != amt) in som_write_symbol_strings()
3521 amt = p - tmp_space; in som_write_symbol_strings()
3522 if (bfd_bwrite ((void *) &tmp_space[0], amt, abfd) != amt) in som_write_symbol_strings()
3565 amt = p - tmp_space; in som_write_symbol_strings()
3566 if (bfd_bwrite ((void *) &tmp_space[0], amt, abfd) != amt) in som_write_symbol_strings()
3943 bfd_size_type amt; in som_finish_writing() local
4079 amt = sizeof (struct som_subspace_dictionary_record); in som_finish_writing()
4080 if (bfd_bwrite (&ext_subspace_dict, amt, abfd) != amt) in som_finish_writing()
4137 amt = sizeof (struct som_subspace_dictionary_record); in som_finish_writing()
4138 if (bfd_bwrite (&ext_subspace_dict, amt, abfd) != amt) in som_finish_writing()
4166 amt = sizeof (struct som_external_space_dictionary_record); in som_finish_writing()
4167 if (bfd_bwrite (&ext_space_dict, amt, abfd) != amt) in som_finish_writing()
4186 amt = sizeof (struct som_external_compilation_unit); in som_finish_writing()
4187 if (bfd_bwrite (&ext_comp_unit, amt, abfd) != amt) in som_finish_writing()
4211 amt = sizeof (struct som_external_header); in som_finish_writing()
4212 if (bfd_bwrite (&ext_header, amt, abfd) != amt) in som_finish_writing()
4252 amt = sizeof (ext_exec_header); in som_finish_writing()
4253 if (bfd_bwrite (&ext_exec_header, amt, abfd) != amt) in som_finish_writing()
4527 bfd_size_type amt; in som_slurp_string_table() local
4543 amt = obj_som_stringtab_size (abfd); in som_slurp_string_table()
4544 stringtab = bfd_zmalloc (amt); in som_slurp_string_table()
4551 if (bfd_bread (stringtab, amt, abfd) != amt) in som_slurp_string_table()
4625 bfd_size_type amt; in som_slurp_symbol_table() local
4640 amt = symbol_count; in som_slurp_symbol_table()
4641 amt *= sizeof (som_symbol_type); in som_slurp_symbol_table()
4642 symbase = bfd_zmalloc (amt); in som_slurp_symbol_table()
4647 amt = symbol_count; in som_slurp_symbol_table()
4648 amt *= symsize; in som_slurp_symbol_table()
4649 buf = bfd_malloc (amt); in som_slurp_symbol_table()
4650 if (buf == NULL && amt != 0) in som_slurp_symbol_table()
4654 if (bfd_bread (buf, amt, abfd) != amt) in som_slurp_symbol_table()
4829 bfd_size_type amt = sizeof (som_symbol_type); in som_make_empty_symbol() local
4830 som_symbol_type *new_symbol_type = bfd_zalloc (abfd, amt); in som_make_empty_symbol()
5243 bfd_size_type amt; in som_slurp_reloc_table() local
5254 amt = fixup_stream_size; in som_slurp_reloc_table()
5255 external_relocs = bfd_malloc (amt); in som_slurp_reloc_table()
5264 if (bfd_bread (external_relocs, amt, abfd) != amt) in som_slurp_reloc_table()
5287 amt = num_relocs; in som_slurp_reloc_table()
5288 amt *= sizeof (arelent); in som_slurp_reloc_table()
5289 internal_relocs = bfd_zalloc (abfd, (amt)); in som_slurp_reloc_table()
5361 bfd_size_type amt = sizeof (struct som_section_data_struct); in som_new_section_hook() local
5363 newsect->used_by_bfd = bfd_zalloc (abfd, amt); in som_new_section_hook()
5407 bfd_size_type amt; in som_bfd_copy_private_section_data() local
5415 amt = sizeof (struct som_copyable_section_data_struct); in som_bfd_copy_private_section_data()
5416 som_section_data (osection)->copy_data = bfd_zalloc (obfd, amt); in som_bfd_copy_private_section_data()
5515 bfd_size_type amt = sizeof (struct som_copyable_section_data_struct); in bfd_som_set_section_attributes() local
5517 som_section_data (section)->copy_data = bfd_zalloc (section->owner, amt); in bfd_som_set_section_attributes()
5545 bfd_size_type amt = sizeof (struct som_copyable_section_data_struct); in bfd_som_set_subsection_attributes() local
5547 som_section_data (section)->copy_data = bfd_zalloc (section->owner, amt); in bfd_som_set_subsection_attributes()
5579 bfd_size_type amt; in bfd_som_attach_aux_hdr() local
5588 amt = sizeof (struct som_string_auxhdr) + len + pad; in bfd_som_attach_aux_hdr()
5589 obj_som_version_hdr (abfd) = bfd_zalloc (abfd, amt); in bfd_som_attach_aux_hdr()
5605 amt = sizeof (struct som_string_auxhdr) + len + pad; in bfd_som_attach_aux_hdr()
5606 obj_som_copyright_hdr (abfd) = bfd_zalloc (abfd, amt); in bfd_som_attach_aux_hdr()
5870 bfd_size_type amt; in som_bfd_count_ar_symbols() local
5875 amt = lst_header->hash_size * 4; in som_bfd_count_ar_symbols()
5876 hash_table = bfd_malloc (amt); in som_bfd_count_ar_symbols()
5877 if (hash_table == NULL && amt != 0) in som_bfd_count_ar_symbols()
5885 if (bfd_bread ((void *) hash_table, amt, abfd) != amt) in som_bfd_count_ar_symbols()
5904 amt = sizeof (ext_lst_symbol); in som_bfd_count_ar_symbols()
5905 if (bfd_bread ((void *) &ext_lst_symbol, amt, abfd) != amt) in som_bfd_count_ar_symbols()
5923 amt = sizeof (ext_lst_symbol); in som_bfd_count_ar_symbols()
5924 if (bfd_bread ((void *) &ext_lst_symbol, amt, abfd) != amt) in som_bfd_count_ar_symbols()
5952 bfd_size_type amt; in som_bfd_fill_in_ar_symbols() local
5957 amt = lst_header->hash_size * 4; in som_bfd_fill_in_ar_symbols()
5958 hash_table = bfd_malloc (amt); in som_bfd_fill_in_ar_symbols()
5959 if (hash_table == NULL && amt != 0) in som_bfd_fill_in_ar_symbols()
5964 if (bfd_bread ((void *) hash_table, amt, abfd) != amt) in som_bfd_fill_in_ar_symbols()
5972 amt = lst_header->module_count * sizeof (struct som_external_som_entry); in som_bfd_fill_in_ar_symbols()
5973 som_dict = bfd_malloc (amt); in som_bfd_fill_in_ar_symbols()
5974 if (som_dict == NULL && amt != 0) in som_bfd_fill_in_ar_symbols()
5977 if (bfd_bread ((void *) som_dict, amt, abfd) != amt) in som_bfd_fill_in_ar_symbols()
5999 amt = sizeof (lst_symbol); in som_bfd_fill_in_ar_symbols()
6000 if (bfd_bread ((void *) &lst_symbol, amt, abfd) != amt) in som_bfd_fill_in_ar_symbols()
6048 amt = sizeof (lst_symbol); in som_bfd_fill_in_ar_symbols()
6049 if (bfd_bread ((void *) &lst_symbol, amt, abfd) != amt) in som_bfd_fill_in_ar_symbols()
6107 bfd_size_type amt = 16; in som_slurp_armap() local
6108 int i = bfd_bread ((void *) nextname, amt, abfd); in som_slurp_armap()
6127 amt = sizeof (struct ar_hdr); in som_slurp_armap()
6128 if (bfd_bread ((void *) &ar_header, amt, abfd) != amt) in som_slurp_armap()
6151 amt = sizeof (struct som_external_lst_header); in som_slurp_armap()
6152 if (bfd_bread ((void *) &ext_lst_header, amt, abfd) != amt) in som_slurp_armap()
6176 amt = ardata->symdef_count; in som_slurp_armap()
6177 amt *= sizeof (carsym); in som_slurp_armap()
6178 ardata->symdefs = bfd_alloc (abfd, amt); in som_slurp_armap()
6305 bfd_size_type amt; in som_bfd_ar_write_symbol_stuff() local
6310 amt = hash_size * 4; in som_bfd_ar_write_symbol_stuff()
6311 hash_table = bfd_zmalloc (amt); in som_bfd_ar_write_symbol_stuff()
6316 amt = module_count * sizeof (struct som_external_som_entry); in som_bfd_ar_write_symbol_stuff()
6317 som_dict = bfd_zmalloc (amt); in som_bfd_ar_write_symbol_stuff()
6321 amt = hash_size * sizeof (struct som_external_lst_symbol_record *); in som_bfd_ar_write_symbol_stuff()
6322 last_hash_entry = bfd_zmalloc (amt); in som_bfd_ar_write_symbol_stuff()
6350 amt = nsyms; in som_bfd_ar_write_symbol_stuff()
6351 amt *= sizeof (struct som_external_lst_symbol_record); in som_bfd_ar_write_symbol_stuff()
6352 lst_syms = bfd_malloc (amt); in som_bfd_ar_write_symbol_stuff()
6500 amt = hash_size * 4; in som_bfd_ar_write_symbol_stuff()
6501 if (bfd_bwrite ((void *) hash_table, amt, abfd) != amt) in som_bfd_ar_write_symbol_stuff()
6505 amt = module_count * sizeof (struct som_external_som_entry); in som_bfd_ar_write_symbol_stuff()
6506 if (bfd_bwrite ((void *) som_dict, amt, abfd) != amt) in som_bfd_ar_write_symbol_stuff()
6510 amt = nsyms * sizeof (struct som_external_lst_symbol_record); in som_bfd_ar_write_symbol_stuff()
6511 if (bfd_bwrite ((void *) lst_syms, amt, abfd) != amt) in som_bfd_ar_write_symbol_stuff()
6515 amt = string_size; in som_bfd_ar_write_symbol_stuff()
6516 if (bfd_bwrite ((void *) strings, amt, abfd) != amt) in som_bfd_ar_write_symbol_stuff()
6563 bfd_size_type amt; in som_write_armap() local
6666 amt = sizeof (struct ar_hdr); in som_write_armap()
6667 if (bfd_bwrite ((void *) &hdr, amt, abfd) != amt) in som_write_armap()
6671 amt = sizeof (struct som_external_lst_header); in som_write_armap()
6672 if (bfd_bwrite ((void *) &lst, amt, abfd) != amt) in som_write_armap()