Home
last modified time | relevance | path

Searched refs:bfd_malloc (Results 1 – 25 of 88) sorted by relevance

1234

/mirbsd/src/gnu/usr.bin/binutils/bfd/
Dsimple.c170 contents = bfd_malloc (amt); in bfd_simple_get_relocated_section_contents()
207 data = bfd_malloc (sec->size); in bfd_simple_get_relocated_section_contents()
237 symbol_table = bfd_malloc (storage_needed); in bfd_simple_get_relocated_section_contents()
Dcoff-ppc.c206 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt);
836 struct list_ele *t = (struct list_ele *) bfd_malloc (amt);
2171 finfo.section_info = (struct coff_link_section_info *) bfd_malloc (amt);
2218 (struct internal_reloc *) bfd_malloc (amt);
2222 (struct coff_link_hash_entry **) bfd_malloc (amt);
2255 finfo.internal_syms = (struct internal_syment *) bfd_malloc (amt);
2257 finfo.sec_ptrs = (asection **) bfd_malloc (amt);
2259 finfo.sym_indices = (long *) bfd_malloc (amt);
2261 finfo.outsyms = (bfd_byte *) bfd_malloc (amt);
2263 finfo.linenos = (bfd_byte *) bfd_malloc (amt);
[all …]
Delf-strtab.c98 table = bfd_malloc (amt); in _bfd_elf_strtab_init()
112 table->array = bfd_malloc (table->alloced * amt); in _bfd_elf_strtab_init()
311 array = bfd_malloc (amt); in _bfd_elf_strtab_finalize()
Delf32-sh-symbian.c133 if ((node = bfd_malloc (sizeof * node)) == NULL) in sh_symbian_import_as()
140 if ((node->current_name = bfd_malloc (strlen (current_name) + 1)) == NULL) in sh_symbian_import_as()
150 if ((node->new_name = bfd_malloc (strlen (new_name) + 1)) == NULL) in sh_symbian_import_as()
407 contents = bfd_malloc (sz); in bfd_elf32_sh_symbian_process_directives()
Dreloc16.c161 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size);
276 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size);
Dpef.c437 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_print_loader_section()
468 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_scan_start_address()
750 libraries = bfd_malloc in bfd_pef_parse_function_stubs()
752 imports = bfd_malloc in bfd_pef_parse_function_stubs()
898 codebuf = bfd_malloc (codelen); in bfd_pef_parse_symbols()
909 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_parse_symbols()
Dcofflink.c111 ret = bfd_malloc (amt); in _bfd_coff_link_hash_table_create()
769 finfo.section_info = bfd_malloc (amt); in _bfd_coff_final_link()
812 finfo.section_info[o->target_index].relocs = bfd_malloc (amt); in _bfd_coff_final_link()
815 finfo.section_info[o->target_index].rel_hashes = bfd_malloc (amt); in _bfd_coff_final_link()
848 finfo.internal_syms = bfd_malloc (amt); in _bfd_coff_final_link()
850 finfo.sec_ptrs = bfd_malloc (amt); in _bfd_coff_final_link()
852 finfo.sym_indices = bfd_malloc (amt); in _bfd_coff_final_link()
853 finfo.outsyms = bfd_malloc ((max_sym_count + 1) * symesz); in _bfd_coff_final_link()
855 finfo.linenos = bfd_malloc (amt); in _bfd_coff_final_link()
856 finfo.contents = bfd_malloc (max_contents_size); in _bfd_coff_final_link()
[all …]
Dcoff-h8300.c203 ret = (struct h8300_coff_link_hash_table *) bfd_malloc (amt); in h8300_coff_link_hash_table_create()
1178 char *new_name = bfd_malloc ((bfd_size_type) strlen (name) + 10); in h8300_reloc16_extra_cases()
1327 relocs = (arelent **) bfd_malloc ((bfd_size_type) reloc_size); in h8300_bfd_link_add_symbols()
1366 new_name = bfd_malloc ((bfd_size_type) strlen (name) + 10); in h8300_bfd_link_add_symbols()
1423 sec->contents = bfd_malloc (sec->size); in h8300_bfd_link_add_symbols()
Dbout.c280 native = bfd_malloc (natsize); in b_out_squirt_out_relocs()
693 relocs = bfd_malloc (reloc_size); in b_out_slurp_reloc_table()
698 reloc_cache = bfd_malloc (amt); in b_out_slurp_reloc_table()
1142 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_relax_section()
1214 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_get_relocated_section_contents()
Dxtensa-isa.c243 bfd_malloc (isa->num_opcodes * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
255 bfd_malloc (isa->num_states * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
267 bfd_malloc (isa->num_sysregs * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
281 bfd_malloc ((isa->max_sysreg_num[is_user] + 1) in xtensa_isa_init()
299 bfd_malloc (isa->num_interfaces * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
312 bfd_malloc (isa->num_funcUnits * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
Dsyms.c790 syms = bfd_malloc (storage); in _bfd_generic_read_minisymbols()
1014 reloc_vector = bfd_malloc (reloc_size); in _bfd_stab_section_find_nearest_line()
1366 info->filename = bfd_malloc (dirlen + len); in _bfd_stab_section_find_nearest_line()
Dsection.c920 sname = bfd_malloc (len + 8); in bfd_get_unique_section_name()
1461 p = bfd_malloc (sec->rawsize > sec->size ? sec->rawsize : sec->size); in bfd_malloc_and_get_section()
Dcoff-arm.c878 ret = bfd_malloc (amt); in coff_arm_link_hash_table_create()
979 tmp_name = bfd_malloc (amt); in find_thumb_glue()
1008 tmp_name = bfd_malloc (amt); in find_arm_glue()
1803 tmp_name = bfd_malloc (amt); in record_arm_to_thumb_glue()
1859 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
1892 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
Dlinker.c549 n = bfd_malloc (amt); in bfd_wrapped_link_hash_lookup()
580 n = bfd_malloc (amt); in bfd_wrapped_link_hash_lookup()
708 ret = bfd_malloc (amt); in _bfd_generic_link_hash_table_create()
1049 char *buf = bfd_malloc (amt); in _bfd_generic_link_add_archive_symbols()
2061 relocs = bfd_malloc (relsize); in _bfd_generic_final_link()
2676 fill = bfd_malloc (size); in default_data_link_order()
2806 contents = bfd_malloc (sec_size); in default_indirect_link_order()
Dformat.c146 matching_vector = bfd_malloc (amt); in bfd_check_format_matches()
Dxcofflink.c444 ret = bfd_malloc (amt); in _bfd_xcoff_bfd_link_hash_table_create()
691 dsnm = bfd_malloc ((bfd_size_type) strlen (name) + 2); in xcoff_link_add_dynamic_symbols()
1049 linenos = bfd_malloc (amt); in xcoff_link_add_symbols()
2581 fnname = bfd_malloc (amt); in bfd_xcoff_export_symbol()
3042 ldsym = bfd_malloc (amt); in bfd_xcoff_size_dynamic_sections()
3364 bim = bfd_malloc ((bfd_size_type) sizeof (* bim)); in bfd_xcoff_link_generate_rtinit()
5534 finfo.section_info = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5582 finfo.section_info[o->target_index].relocs = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5586 finfo.section_info[o->target_index].rel_hashes = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5637 finfo.internal_syms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
[all …]
Dsrec.c364 symbuf = bfd_malloc (alc + 1); in srec_scan()
477 buf = bfd_malloc ((bfd_size_type) bytes * 2); in srec_scan()
697 buf = bfd_malloc ((bfd_size_type) bytes * 2); in srec_read_section()
Dlibbfd.c144 bfd_malloc (bfd_size_type size) in bfd_malloc() function
842 w->i->data = bfd_malloc (count); in _bfd_generic_get_section_contents_in_window()
Dvms-misc.c249 PRIV (vms_buf) = bfd_malloc (amt); in _bfd_vms_get_record()
430 char *newstr = bfd_malloc ((bfd_size_type) size + 1); in _bfd_vms_save_sized_string()
Decoff.c452 raw = bfd_malloc (external_hdr_size); in ecoff_slurp_symbolic_header()
1946 sorted_hdrs = bfd_malloc (amt); in ecoff_compute_section_file_positions()
2383 buff = bfd_malloc (siz); in _bfd_ecoff_write_object_contents()
3285 ret = bfd_malloc (amt); in _bfd_ecoff_bfd_link_hash_table_create()
3548 external_ext = bfd_malloc (esize); in ecoff_link_add_object_symbols()
3556 ssext = bfd_malloc ((bfd_size_type) symhdr->issExtMax); in ecoff_link_add_object_symbols()
3614 external_ext = bfd_malloc (esize); in ecoff_link_check_archive_element()
3622 ssext = bfd_malloc ((bfd_size_type) symhdr->issExtMax); in ecoff_link_check_archive_element()
3911 debug->ptr = bfd_malloc (amt); \ in ecoff_final_link_debug_accumulate()
4024 external_relocs = bfd_malloc (external_relocs_size); in ecoff_indirect_link_order()
[all …]
Delflink.c1761 alc = bfd_malloc (len); in _bfd_elf_link_assign_sym_version()
2034 internal_relocs = alloc2 = bfd_malloc (size); in _bfd_elf_link_read_relocs()
2045 alloc1 = bfd_malloc (size); in _bfd_elf_link_read_relocs()
3539 extversym = bfd_malloc (versymhdr->sh_size); in elf_link_add_object_symbols()
4079 nondeflt_vers = bfd_malloc (amt); in elf_link_add_object_symbols()
4161 shortname = bfd_malloc (amt + 1); in elf_link_add_object_symbols()
4242 sorted_sym_hash = bfd_malloc (amt); in elf_link_add_object_symbols()
4756 alc = bfd_malloc (p - name + 1); in elf_collect_hash_codes()
4813 hashcodes = bfd_malloc (amt); in compute_bucket_count()
4848 counts = bfd_malloc (amt); in compute_bucket_count()
[all …]
Dm68klinux.c232 ret = (struct linux_link_hash_table *) bfd_malloc (amt);
458 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1);
Dsparclinux.c232 ret = (struct linux_link_hash_table *) bfd_malloc (amt);
455 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1);
Delf32-m68hc1x.c68 ret = (struct m68hc11_elf_link_hash_table *) bfd_malloc (amt); in m68hc11_elf_hash_table_create()
82 ret->stub_hash_table = (struct bfd_hash_table*) bfd_malloc (amt); in m68hc11_elf_hash_table_create()
279 input_list = (asection **) bfd_malloc (amt); in elf32_m68hc11_setup_section_lists()
Daix5ppc-core.c257 path = bfd_malloc (alloc);

1234