Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/binutils/bfd/
H A Dsimple.c170 contents = bfd_malloc (amt); in bfd_simple_get_relocated_section_contents()
208 data = bfd_malloc (sec->size); in bfd_simple_get_relocated_section_contents()
238 symbol_table = bfd_malloc (storage_needed); in bfd_simple_get_relocated_section_contents()
H A Dcoff-ppc.c200 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt);
831 struct list_ele *t = (struct list_ele *) bfd_malloc (amt);
2229 (struct internal_reloc *) bfd_malloc (amt);
2233 (struct coff_link_hash_entry **) bfd_malloc (amt);
2266 finfo.internal_syms = (struct internal_syment *) bfd_malloc (amt);
2268 finfo.sec_ptrs = (asection **) bfd_malloc (amt);
2270 finfo.sym_indices = (long *) bfd_malloc (amt);
2272 finfo.outsyms = (bfd_byte *) bfd_malloc (amt);
2274 finfo.linenos = (bfd_byte *) bfd_malloc (amt);
2275 finfo.contents = (bfd_byte *) bfd_malloc (max_contents_size);
[all …]
H A Delf-strtab.c99 table = bfd_malloc (amt); in _bfd_elf_strtab_init()
114 table->array = bfd_malloc (table->alloced * amt); in _bfd_elf_strtab_init()
313 array = bfd_malloc (amt); in _bfd_elf_strtab_finalize()
H A Dreloc16.c161 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size);
276 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size);
H A Dcofflink.c112 ret = bfd_malloc (amt); in _bfd_coff_link_hash_table_create()
771 finfo.section_info = bfd_malloc (amt); in _bfd_coff_final_link()
850 finfo.internal_syms = bfd_malloc (amt); in _bfd_coff_final_link()
852 finfo.sec_ptrs = bfd_malloc (amt); in _bfd_coff_final_link()
854 finfo.sym_indices = bfd_malloc (amt); in _bfd_coff_final_link()
857 finfo.linenos = bfd_malloc (amt); in _bfd_coff_final_link()
858 finfo.contents = bfd_malloc (max_contents_size); in _bfd_coff_final_link()
860 finfo.external_relocs = bfd_malloc (amt); in _bfd_coff_final_link()
864 finfo.internal_relocs = bfd_malloc (amt); in _bfd_coff_final_link()
1014 external_relocs = bfd_malloc (amt); in _bfd_coff_final_link()
[all …]
H A Dsyms.c798 syms = bfd_malloc (storage); in _bfd_generic_read_minisymbols()
1022 reloc_vector = bfd_malloc (reloc_size); in _bfd_stab_section_find_nearest_line()
1374 info->filename = bfd_malloc (dirlen + len); in _bfd_stab_section_find_nearest_line()
H A Delf32-spu.c356 htab = bfd_malloc (sizeof (*htab)); in spu_elf_link_hash_table_create()
489 stub_name = bfd_malloc (len); in spu_stub_name()
501 stub_name = bfd_malloc (len); in spu_stub_name()
608 alloc_sec = bfd_malloc (output_bfd->section_count * sizeof (*alloc_sec)); in spu_elf_find_overlays()
1091 stubs.sh = bfd_malloc (stubs.count * sizeof (*stubs.sh)); in spu_elf_size_stubs()
1263 name = bfd_malloc (len1 + len2 + 1); in write_one_stub()
1750 char *name = bfd_malloc (len + 10); in func_name()
2002 callee = bfd_malloc (sizeof *callee); in mark_functions_via_relocs()
2151 psyms = bfd_malloc ((symcount + 1) * sizeof (*psyms)); in discover_functions()
2155 psecs = bfd_malloc (symcount * sizeof (*psecs)); in discover_functions()
[all …]
H A Dsection.c918 sname = bfd_malloc (len + 8); in bfd_get_unique_section_name()
1466 p = bfd_malloc (sec->rawsize > sec->size ? sec->rawsize : sec->size); in bfd_malloc_and_get_section()
H A Dcoff-arm.c921 ret = bfd_malloc (amt); in coff_arm_link_hash_table_create()
1024 tmp_name = bfd_malloc (amt); in find_thumb_glue()
1053 tmp_name = bfd_malloc (amt); in find_arm_glue()
1850 tmp_name = bfd_malloc (amt); in record_arm_to_thumb_glue()
1906 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
1939 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
H A Dbout.c280 native = bfd_malloc (natsize); in b_out_squirt_out_relocs()
708 relocs = bfd_malloc (reloc_size); in b_out_slurp_reloc_table()
713 reloc_cache = bfd_malloc (amt); in b_out_slurp_reloc_table()
1158 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_relax_section()
1230 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_get_relocated_section_contents()
H A Dformat.c148 matching_vector = bfd_malloc (amt); in bfd_check_format_matches()
H A Dlinker.c551 n = bfd_malloc (amt); in bfd_wrapped_link_hash_lookup()
582 n = bfd_malloc (amt); in bfd_wrapped_link_hash_lookup()
710 ret = bfd_malloc (amt); in _bfd_generic_link_hash_table_create()
1054 char *buf = bfd_malloc (amt); in _bfd_generic_link_add_archive_symbols()
2065 relocs = bfd_malloc (relsize); in _bfd_generic_final_link()
2677 fill = bfd_malloc (size); in default_data_link_order()
2806 contents = bfd_malloc (sec_size); in default_indirect_link_order()
H A Dxcofflink.c444 ret = bfd_malloc (amt); in _bfd_xcoff_bfd_link_hash_table_create()
1050 linenos = bfd_malloc (amt); in xcoff_link_add_symbols()
2583 fnname = bfd_malloc (amt); in bfd_xcoff_export_symbol()
3044 ldsym = bfd_malloc (amt); in bfd_xcoff_size_dynamic_sections()
5536 finfo.section_info = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5639 finfo.internal_syms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5642 finfo.sym_indices = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5645 finfo.outsyms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5648 finfo.linenos = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
5651 finfo.contents = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
[all …]
H A Dsrec.c364 symbuf = bfd_malloc (alc + 1); in srec_scan()
477 buf = bfd_malloc ((bfd_size_type) bytes * 2); in srec_scan()
698 buf = bfd_malloc ((bfd_size_type) bytes * 2); in srec_read_section()
H A Delflink.c1895 alc = bfd_malloc (len); in _bfd_elf_link_assign_sym_version()
2179 alloc1 = bfd_malloc (size); in _bfd_elf_link_read_relocs()
4501 shortname = bfd_malloc (amt + 1); in elf_link_add_object_symbols()
5069 alc = bfd_malloc (p - name + 1); in elf_collect_hash_codes()
5138 alc = bfd_malloc (p - name + 1); in elf_collect_gnu_hash_codes()
5277 counts = bfd_malloc (amt); in compute_bucket_count()
5560 newname = bfd_malloc (newlen); in bfd_elf_size_dynamic_sections()
6241 hashcodes = bfd_malloc (amt); in bfd_elf_size_dynsym_hash_dynstr()
6287 cinfo.hashcodes = bfd_malloc (amt); in bfd_elf_size_dynsym_hash_dynstr()
9664 finfo.symbuf = bfd_malloc (amt); in bfd_elf_final_link()
[all …]
H A Dlibbfd.c162 bfd_malloc (bfd_size_type size) in bfd_malloc() function
860 w->i->data = bfd_malloc (count); in _bfd_generic_get_section_contents_in_window()
H A Decoff.c451 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()
3549 external_ext = bfd_malloc (esize); in ecoff_link_add_object_symbols()
3557 ssext = bfd_malloc ((bfd_size_type) symhdr->issExtMax); in ecoff_link_add_object_symbols()
3615 external_ext = bfd_malloc (esize); in ecoff_link_check_archive_element()
3623 ssext = bfd_malloc ((bfd_size_type) symhdr->issExtMax); in ecoff_link_check_archive_element()
3912 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 …]
H A Dsparclinux.c230 ret = (struct linux_link_hash_table *) bfd_malloc (amt);
450 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1); in linux_tally_symbols()
H A Dbfd.c1748 alloc = bfd_malloc (suf - name + 1); in bfd_demangle()
1775 final = bfd_malloc (pre_len + len + suf_len); in bfd_demangle()
H A Dmerge.c241 table = bfd_malloc (sizeof (struct sec_merge_hash)); in sec_merge_init()
600 array = bfd_malloc (amt); in merge_strings()
H A Delfcode.h1191 xverbuf = bfd_malloc (verhdr->sh_size); in elf_slurp_symbol_table()
1364 allocated = bfd_malloc (rel_hdr->sh_size); in elf_slurp_reloc_table_from_section()
1644 x_phdrs = bfd_malloc (i_ehdr.e_phnum * (sizeof *x_phdrs + sizeof *i_phdrs)); in NAME()
1756 bim = bfd_malloc (sizeof (struct bfd_in_memory)); in NAME()
H A Decofflink.c501 ainfo = (struct accumulate *) bfd_malloc (amt);
717 lookup = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 20);
1504 buff = (PTR) bfd_malloc (swap->external_hdr_size);
1641 space = (PTR) bfd_malloc (amt);
2383 buffer = (char *) bfd_malloc ((bfd_size_type) len);
H A Dhash.c690 table = bfd_malloc (amt); in _bfd_stringtab_init()
H A Darchures.c658 name_list = bfd_malloc (amt); in bfd_arch_list()
/freebsd-12.1/contrib/binutils/binutils/
H A Dbucomm.c550 buf = bfd_malloc (curr); in bfd_get_archive_filename()

123