Home
last modified time | relevance | path

Searched refs:symcount (Results 1 – 25 of 44) sorted by relevance

12

/NextBSD/contrib/binutils/binutils/
HDnm.c385 long symcount, unsigned int size) in filter_symbols() argument
395 fromend = from + symcount * size; in filter_symbols()
646 long symcount, unsigned int size, in sort_symbols_by_size() argument
654 qsort (minisyms, symcount, size, size_forward1); in sort_symbols_by_size()
658 symsizes = xmalloc (symcount * sizeof (struct size_sym)); in sort_symbols_by_size()
665 fromend = from + symcount * size; in sort_symbols_by_size()
728 symcount = symsizes - *symsizesp; in sort_symbols_by_size()
731 qsort ((void *) *symsizesp, symcount, sizeof (struct size_sym), size_forward2); in sort_symbols_by_size()
733 return symcount; in sort_symbols_by_size()
795 static long symcount; in print_symbol() local
[all …]
HDrddbg.c47 read_debugging_info (bfd *abfd, asymbol **syms, long symcount) in read_debugging_info() argument
56 if (! read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, in read_debugging_info()
62 if (! read_symbol_stabs_debugging_info (abfd, syms, symcount, dhandle, in read_debugging_info()
77 && symcount > 0) in read_debugging_info()
79 if (! parse_coff (abfd, syms, symcount, dhandle)) in read_debugging_info()
97 read_section_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount, in read_section_stabs_debugging_info() argument
152 shandle = start_stab (dhandle, abfd, TRUE, syms, symcount); in read_section_stabs_debugging_info()
260 read_symbol_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount, in read_symbol_stabs_debugging_info() argument
267 symend = syms + symcount; in read_symbol_stabs_debugging_info()
281 shandle = start_stab (dhandle, abfd, FALSE, syms, symcount); in read_symbol_stabs_debugging_info()
HDaddr2line.c101 long symcount; in slurp_symtab() local
107 symcount = bfd_read_minisymbols (abfd, FALSE, (void *) &syms, &size); in slurp_symtab()
108 if (symcount == 0) in slurp_symtab()
109 symcount = bfd_read_minisymbols (abfd, TRUE /* dynamic */, (void *) &syms, &size); in slurp_symtab()
111 if (symcount < 0) in slurp_symtab()
HDrdcoff.c54 long symcount; member
393 && symbols->symno < symbols->symcount) in parse_coff_struct_type()
502 && symbols->symno < symbols->symcount) in parse_coff_enum_type()
655 parse_coff (bfd *abfd, asymbol **syms, long symcount, void *dhandle) in parse_coff() argument
670 symbols.symcount = symcount; in parse_coff()
686 while (symbols.symno < symcount) in parse_coff()
HDdlltool.c1319 scan_filtered_symbols (bfd *abfd, void *minisyms, long symcount, in scan_filtered_symbols() argument
1330 fromend = from + symcount * size; in scan_filtered_symbols()
1416 filter_symbols (bfd *abfd, void *minisyms, long symcount, unsigned int size) in filter_symbols() argument
1426 fromend = from + symcount * size; in filter_symbols()
1462 long symcount; in scan_all_symbols() local
1479 symcount = bfd_read_minisymbols (abfd, FALSE, &minisyms, &size); in scan_all_symbols()
1480 if (symcount < 0) in scan_all_symbols()
1483 if (symcount == 0) in scan_all_symbols()
1493 symcount = filter_symbols (abfd, minisyms, symcount, size); in scan_all_symbols()
1494 scan_filtered_symbols (abfd, minisyms, symcount, size); in scan_all_symbols()
HDobjcopy.c909 asymbol **isyms, long symcount) in filter_symbols() argument
915 for (; src_count < symcount; src_count++) in filter_symbols()
1318 long symcount; in copy_object() local
1414 symcount = bfd_canonicalize_symtab (ibfd, isympp); in copy_object()
1415 if (symcount < 0) in copy_object()
1637 dhandle = read_debugging_info (ibfd, isympp, symcount); in copy_object()
1672 osympp = xmalloc ((symcount + 1) * sizeof (asymbol *)); in copy_object()
1673 symcount = filter_symbols (ibfd, obfd, osympp, isympp, symcount); in copy_object()
1678 if (! write_debugging_info (obfd, dhandle, &symcount, &osympp)) in copy_object()
1685 bfd_set_symtab (obfd, osympp, symcount); in copy_object()
HDobjdump.c149 static long symcount = 0; variable
416 symcount = 0; in slurp_symtab()
426 symcount = bfd_canonicalize_symtab (abfd, sy); in slurp_symtab()
427 if (symcount < 0) in slurp_symtab()
1907 sorted_symcount = symcount ? symcount : dynsymcount; in disassemble_data()
1909 memcpy (sorted_syms, symcount ? syms : dynsyms, in disassemble_data()
2558 max = symcount; in dump_symbols()
2874 synthcount = bfd_get_synthetic_symtab (abfd, symcount, syms, in dump_bfd()
2901 dhandle = read_debugging_info (abfd, syms, symcount); in dump_bfd()
2933 symcount = 0; in dump_bfd()
HDcoffgrok.c53 static long symcount; variable
734 symcount = bfd_canonicalize_symtab (abfd, syms); in coff_grok()
735 if (symcount < 0) in coff_grok()
/NextBSD/contrib/gdb/gdb/
HDgdb-stabs.h54 int symcount; /* How many symbols are there in the file */ member
80 #define DBX_SYMCOUNT(o) (DBX_SYMFILE_INFO(o)->symcount)
HDelfread.c466 long symcount = 0, dynsymcount = 0, synthcount, storage_needed; in elf_symfile_read() local
494 symcount = bfd_canonicalize_symtab (objfile->obfd, symbol_table); in elf_symfile_read()
496 if (symcount < 0) in elf_symfile_read()
500 elf_symtab_read (objfile, 0, symcount, symbol_table); in elf_symfile_read()
523 synthcount = bfd_get_synthetic_symtab (abfd, symcount, symbol_table, in elf_symfile_read()
HDhpread.c1776 int hp_symnum, symcount, i; in hpread_build_psymtabs() local
1896 symcount = GNTT_SYMCOUNT (objfile); in hpread_build_psymtabs()
1898 symcount = LNTT_SYMCOUNT (objfile); in hpread_build_psymtabs()
1901 for (hp_symnum = scan_start; hp_symnum < symcount; hp_symnum++) in hpread_build_psymtabs()
1920 && symcount == hp_symnum + 1) in hpread_build_psymtabs()
2005 valu = hpread_get_textlow (i, hp_symnum, objfile, symcount); in hpread_build_psymtabs()
2039 valu = hpread_get_textlow (i, hp_symnum, objfile, symcount); in hpread_build_psymtabs()
2108 && symcount == hp_symnum + 1) in hpread_build_psymtabs()
2327 int symcount) in hpread_get_textlow() argument
2333 if (index < symcount) /* symcount is the number of symbols in */ in hpread_get_textlow()
[all …]
/NextBSD/contrib/wpa/src/utils/
HDtrace.c74 long storage, symcount; in read_syms() local
102 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in read_syms()
104 symcount = bfd_canonicalize_symtab(abfd, syms); in read_syms()
105 if (symcount < 0) { in read_syms()
/NextBSD/contrib/binutils/bfd/
HDsyms.c439 bfd_set_symtab (bfd *abfd, asymbol **location, unsigned int symcount) in bfd_set_symtab() argument
448 bfd_get_symcount (abfd) = symcount; in bfd_set_symtab()
787 long symcount; in _bfd_generic_read_minisymbols() local
803 symcount = bfd_canonicalize_dynamic_symtab (abfd, syms); in _bfd_generic_read_minisymbols()
805 symcount = bfd_canonicalize_symtab (abfd, syms); in _bfd_generic_read_minisymbols()
806 if (symcount < 0) in _bfd_generic_read_minisymbols()
811 return symcount; in _bfd_generic_read_minisymbols()
HDelfcode.h1111 unsigned long symcount; /* Number of external ELF symbols */ in elf_slurp_symbol_table() local
1155 symcount = hdr->sh_size / sizeof (Elf_External_Sym); in elf_slurp_symbol_table()
1156 if (symcount == 0) in elf_slurp_symbol_table()
1160 isymbuf = bfd_elf_get_elf_syms (abfd, hdr, symcount, 0, in elf_slurp_symbol_table()
1165 amt = symcount; in elf_slurp_symbol_table()
1173 && verhdr->sh_size / sizeof (Elf_External_Versym) != symcount) in elf_slurp_symbol_table()
1179 symcount); in elf_slurp_symbol_table()
1203 isymend = isymbuf + symcount; in elf_slurp_symbol_table()
1310 (*ebd->elf_backend_symbol_table_processing) (abfd, symbase, symcount); in elf_slurp_symbol_table()
1314 symcount = sym - symbase; in elf_slurp_symbol_table()
[all …]
HDsrec.c286 ++abfd->symcount; in srec_new_symbol()
618 if (abfd->symcount > 0) in srec_object_p()
653 if (abfd->symcount > 0) in symbolsrec_object_p()
1121 bfd_size_type symcount = bfd_get_symcount (abfd); in srec_canonicalize_symtab() local
1131 csymbols = bfd_alloc (abfd, symcount * sizeof (asymbol)); in srec_canonicalize_symtab()
1132 if (csymbols == NULL && symcount != 0) in srec_canonicalize_symtab()
1149 for (i = 0; i < symcount; i++) in srec_canonicalize_symtab()
1153 return symcount; in srec_canonicalize_symtab()
HDgenlink.h81 #define _bfd_generic_link_get_symcount(abfd) ((abfd)->symcount)
HDelf32-spu.c439 size_t symcount = symtab_hdr->sh_info; in get_sym_h() local
445 symcount = symtab_hdr->sh_size / symtab_hdr->sh_entsize; in get_sym_h()
446 locsyms = bfd_elf_get_elf_syms (ibfd, symtab_hdr, symcount, 0, in get_sym_h()
2127 size_t symcount; in discover_functions() local
2136 symcount = symtab_hdr->sh_size / symtab_hdr->sh_entsize; in discover_functions()
2137 if (symcount == 0) in discover_functions()
2143 syms = bfd_elf_get_elf_syms (ibfd, symtab_hdr, symcount, 0, in discover_functions()
2151 psyms = bfd_malloc ((symcount + 1) * sizeof (*psyms)); in discover_functions()
2155 psecs = bfd_malloc (symcount * sizeof (*psecs)); in discover_functions()
2159 for (psy = psyms, p = psecs, sy = syms; sy < syms + symcount; ++p, ++sy) in discover_functions()
[all …]
HDelf.c333 size_t symcount, in bfd_elf_get_elf_syms() argument
351 if (symcount == 0) in bfd_elf_get_elf_syms()
364 amt = symcount * extsym_size; in bfd_elf_get_elf_syms()
368 alloc_ext = bfd_malloc2 (symcount, extsym_size); in bfd_elf_get_elf_syms()
383 amt = symcount * sizeof (Elf_External_Sym_Shndx); in bfd_elf_get_elf_syms()
387 alloc_extshndx = bfd_malloc2 (symcount, in bfd_elf_get_elf_syms()
402 intsym_buf = bfd_malloc2 (symcount, sizeof (Elf_Internal_Sym)); in bfd_elf_get_elf_syms()
408 isymend = intsym_buf + symcount; in bfd_elf_get_elf_syms()
3395 unsigned int symcount = bfd_get_symcount (abfd); in elf_map_symbols() local
3427 for (idx = 0; idx < symcount; idx++) in elf_map_symbols()
[all …]
HDlinker.c746 long symcount; in generic_link_read_symbols() local
754 symcount = bfd_canonicalize_symtab (abfd, bfd_get_outsymbols (abfd)); in generic_link_read_symbols()
755 if (symcount < 0) in generic_link_read_symbols()
757 bfd_get_symcount (abfd) = symcount; in generic_link_read_symbols()
834 bfd_size_type symcount; in generic_link_add_object_symbols() local
839 symcount = _bfd_generic_link_get_symcount (abfd); in generic_link_add_object_symbols()
841 return generic_link_add_symbol_list (abfd, info, symcount, outsyms, collect); in generic_link_add_object_symbols()
1200 bfd_size_type symcount; in generic_link_check_archive_element() local
1207 symcount = _bfd_generic_link_get_symcount (abfd); in generic_link_check_archive_element()
1209 if (! generic_link_add_symbol_list (abfd, info, symcount, in generic_link_check_archive_element()
HDieee.c945 abfd->symcount = in ieee_slurp_external_symbols()
948 if (symbol_count != abfd->symcount) in ieee_slurp_external_symbols()
976 return (abfd->symcount != 0) ? in ieee_get_symtab_upper_bound()
977 (abfd->symcount + 1) * (sizeof (ieee_symbol_type *)) : 0; in ieee_get_symtab_upper_bound()
1003 if (abfd->symcount) in ieee_canonicalize_symtab()
1017 for (i = 0; i < abfd->symcount; i++) in ieee_canonicalize_symtab()
1039 if (abfd->symcount) in ieee_canonicalize_symtab()
1040 location[abfd->symcount] = (asymbol *) NULL; in ieee_canonicalize_symtab()
1042 return abfd->symcount; in ieee_canonicalize_symtab()
HDelf32-cr16.c685 unsigned int symcount; in elf32_cr16_relax_delete_bytes() local
749 symcount = (symtab_hdr->sh_size / sizeof (Elf32_External_Sym) in elf32_cr16_relax_delete_bytes()
752 end_hashes = sym_hashes + symcount; in elf32_cr16_relax_delete_bytes()
HDtekhex.c421 abfd->symcount++; in first_phase()
522 return (abfd->symcount + 1) * (sizeof (struct tekhex_asymbol_struct *)); in tekhex_get_symtab_upper_bound()
HDarchive.c1823 long symcount; in _bfd_compute_and_write_armap() local
1841 symcount = bfd_canonicalize_symtab (current, syms); in _bfd_compute_and_write_armap()
1842 if (symcount < 0) in _bfd_compute_and_write_armap()
1847 for (src_count = 0; src_count < symcount; src_count++) in _bfd_compute_and_write_armap()
HDbinary.c74 abfd->symcount = BIN_SYMS; in binary_object_p()
HDelf64-ppc.c2832 long symcount, codesecsym, codesecsymend, secsymend, opdsymend; in ppc64_elf_get_synthetic_symtab() local
2843 symcount = static_count; in ppc64_elf_get_synthetic_symtab()
2845 symcount += dyn_count; in ppc64_elf_get_synthetic_symtab()
2846 if (symcount == 0) in ppc64_elf_get_synthetic_symtab()
2849 syms = bfd_malloc ((symcount + 1) * sizeof (*syms)); in ppc64_elf_get_synthetic_symtab()
2860 memcpy (syms, dyn_syms, (symcount + 1) * sizeof (*syms)); in ppc64_elf_get_synthetic_symtab()
2862 memcpy (syms, static_syms, (symcount + 1) * sizeof (*syms)); in ppc64_elf_get_synthetic_symtab()
2866 qsort (syms, symcount, sizeof (*syms), compare_symbols); in ppc64_elf_get_synthetic_symtab()
2868 if (!relocatable && symcount > 1) in ppc64_elf_get_synthetic_symtab()
2874 for (i = 1, j = 1; i < symcount; ++i) in ppc64_elf_get_synthetic_symtab()
[all …]

12