Home
last modified time | relevance | path

Searched refs:stringsize (Results 1 – 25 of 27) sorted by relevance

12

/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Darchive64.c42 bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize; in _bfd_archive_64_bit_slurp_armap() local
95 stringsize = parsed_size - 8 * nsymz - 8; in _bfd_archive_64_bit_slurp_armap()
100 amt = carsym_size + stringsize + 1; in _bfd_archive_64_bit_slurp_armap()
103 || stringsize > parsed_size in _bfd_archive_64_bit_slurp_armap()
108 || amt <= stringsize) in _bfd_archive_64_bit_slurp_armap()
121 || bfd_read (stringbase, stringsize, abfd) != stringsize) in _bfd_archive_64_bit_slurp_armap()
128 stringend = stringbase + stringsize; in _bfd_archive_64_bit_slurp_armap()
167 unsigned int stringsize = stridx; in _bfd_archive_64_bit_write_armap() local
168 unsigned int mapsize = stringsize + ranlibsize; in _bfd_archive_64_bit_write_armap()
H A Darchive.c1089 bfd_size_type stringsize; in do_slurp_coff_armap() local
1131 stringsize = parsed_size - ptrsize - 4; in do_slurp_coff_armap()
1133 if (carsym_size + stringsize + 1 <= carsym_size) in do_slurp_coff_armap()
1145 carsym_size + stringsize + 1); in do_slurp_coff_armap()
1151 if (bfd_read (stringbase, stringsize, abfd) != stringsize) in do_slurp_coff_armap()
1155 stringend = stringbase + stringsize; in do_slurp_coff_armap()
2495 unsigned int stringsize = stridx + padit; in _bfd_bsd_write_armap() local
2497 unsigned int mapsize = ranlibsize + stringsize + 8; in _bfd_bsd_write_armap()
2633 H_PUT_32 (arch, stringsize, temp); in _bfd_bsd_write_armap()
2741 unsigned int stringsize = stridx; in _bfd_coff_write_armap() local
[all …]
H A Dpdp11.c1300 bfd_size_type stringsize; in aout_get_external_symbols() local
1308 stringsize = H_GET_32 (abfd, string_chars); in aout_get_external_symbols()
1309 if (stringsize == 0) in aout_get_external_symbols()
1310 stringsize = 1; in aout_get_external_symbols()
1311 else if (stringsize < BYTES_IN_LONG in aout_get_external_symbols()
1312 || (size_t) stringsize != stringsize) in aout_get_external_symbols()
1319 if (stringsize >= BYTES_IN_LONG) in aout_get_external_symbols()
1321 if (! bfd_get_file_window (abfd, obj_str_filepos (abfd), stringsize + 1, in aout_get_external_symbols()
1329 strings = (char *) bfd_malloc (stringsize + 1); in aout_get_external_symbols()
1333 if (stringsize >= BYTES_IN_LONG) in aout_get_external_symbols()
[all …]
H A Daoutx.h1321 bfd_size_type stringsize; in aout_get_external_symbols() local
1329 stringsize = GET_WORD (abfd, string_chars); in aout_get_external_symbols()
1330 if (stringsize == 0) in aout_get_external_symbols()
1331 stringsize = 1; in aout_get_external_symbols()
1332 else if (stringsize < BYTES_IN_WORD in aout_get_external_symbols()
1333 || (size_t) stringsize != stringsize) in aout_get_external_symbols()
1340 if (stringsize >= BYTES_IN_WORD) in aout_get_external_symbols()
1342 if (! bfd_get_file_window (abfd, obj_str_filepos (abfd), stringsize + 1, in aout_get_external_symbols()
1350 strings = (char *) bfd_malloc (stringsize + 1); in aout_get_external_symbols()
1354 if (stringsize >= BYTES_IN_WORD) in aout_get_external_symbols()
[all …]
H A Dsom.c6221 unsigned int *stringsize) in som_bfd_prep_for_ar_write() argument
6227 *stringsize = 0; in som_bfd_prep_for_ar_write()
6279 *stringsize += strlen (sym->symbol.name) + 5; in som_bfd_prep_for_ar_write()
6280 while (*stringsize % 4) in som_bfd_prep_for_ar_write()
6281 (*stringsize)++; in som_bfd_prep_for_ar_write()
6585 unsigned int i, lst_size, nsyms, stringsize; in som_write_armap() local
6648 if (! som_bfd_prep_for_ar_write (abfd, &nsyms, &stringsize)) in som_write_armap()
6656 bfd_putb32 (stringsize, &lst.string_size); in som_write_armap()
6657 lst_size += stringsize; in som_write_armap()
6702 if (!som_bfd_ar_write_symbol_stuff (abfd, nsyms, stringsize, lst, elength)) in som_write_armap()
H A Decoff.c2921 bfd_size_type parsed_size, stringsize; in _bfd_ecoff_slurp_armap() local
3003 stringsize = parsed_size - (count * 8 + 8); in _bfd_ecoff_slurp_armap()
3064 if (name_offset > stringsize) in _bfd_ecoff_slurp_armap()
3099 unsigned int stringsize; in _bfd_ecoff_write_armap() local
3118 stringsize = stridx + padit; in _bfd_ecoff_write_armap()
3121 mapsize = symdefsize + stringsize + 8; in _bfd_ecoff_write_armap()
3226 H_PUT_32 (abfd, stringsize, temp); in _bfd_ecoff_write_armap()
H A DChangeLog-20113141 stringsize. Properly sanity check symdef_count. Remove redundant
H A DChangeLog-20202263 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Darchive64.c42 bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize; in _bfd_archive_64_bit_slurp_armap() local
95 stringsize = parsed_size - 8 * nsymz - 8; in _bfd_archive_64_bit_slurp_armap()
100 amt = carsym_size + stringsize + 1; in _bfd_archive_64_bit_slurp_armap()
103 || stringsize > parsed_size in _bfd_archive_64_bit_slurp_armap()
108 || amt <= stringsize) in _bfd_archive_64_bit_slurp_armap()
121 || bfd_bread (stringbase, stringsize, abfd) != stringsize) in _bfd_archive_64_bit_slurp_armap()
128 stringend = stringbase + stringsize; in _bfd_archive_64_bit_slurp_armap()
167 unsigned int stringsize = stridx; in _bfd_archive_64_bit_write_armap() local
168 unsigned int mapsize = stringsize + ranlibsize; in _bfd_archive_64_bit_write_armap()
H A Darchive.c1076 bfd_size_type stringsize; in do_slurp_coff_armap() local
1118 stringsize = parsed_size - ptrsize - 4; in do_slurp_coff_armap()
1120 if (carsym_size + stringsize + 1 <= carsym_size) in do_slurp_coff_armap()
1132 carsym_size + stringsize + 1); in do_slurp_coff_armap()
1138 if (bfd_bread (stringbase, stringsize, abfd) != stringsize) in do_slurp_coff_armap()
1142 stringend = stringbase + stringsize; in do_slurp_coff_armap()
2462 unsigned int stringsize = stridx + padit; in _bfd_bsd_write_armap() local
2464 unsigned int mapsize = ranlibsize + stringsize + 8; in _bfd_bsd_write_armap()
2595 H_PUT_32 (arch, stringsize, temp); in _bfd_bsd_write_armap()
2695 unsigned int stringsize = stridx; in _bfd_coff_write_armap() local
[all …]
H A Dpdp11.c1301 bfd_size_type stringsize; in aout_get_external_symbols() local
1309 stringsize = H_GET_32 (abfd, string_chars); in aout_get_external_symbols()
1310 if (stringsize == 0) in aout_get_external_symbols()
1311 stringsize = 1; in aout_get_external_symbols()
1312 else if (stringsize < BYTES_IN_LONG in aout_get_external_symbols()
1313 || (size_t) stringsize != stringsize) in aout_get_external_symbols()
1320 if (stringsize >= BYTES_IN_LONG) in aout_get_external_symbols()
1322 if (! bfd_get_file_window (abfd, obj_str_filepos (abfd), stringsize + 1, in aout_get_external_symbols()
1330 strings = (char *) bfd_malloc (stringsize + 1); in aout_get_external_symbols()
1334 if (stringsize >= BYTES_IN_LONG) in aout_get_external_symbols()
[all …]
H A Daoutx.h1321 bfd_size_type stringsize; in aout_get_external_symbols() local
1329 stringsize = GET_WORD (abfd, string_chars); in aout_get_external_symbols()
1330 if (stringsize == 0) in aout_get_external_symbols()
1331 stringsize = 1; in aout_get_external_symbols()
1332 else if (stringsize < BYTES_IN_WORD in aout_get_external_symbols()
1333 || (size_t) stringsize != stringsize) in aout_get_external_symbols()
1340 if (stringsize >= BYTES_IN_WORD) in aout_get_external_symbols()
1342 if (! bfd_get_file_window (abfd, obj_str_filepos (abfd), stringsize + 1, in aout_get_external_symbols()
1350 strings = (char *) bfd_malloc (stringsize + 1); in aout_get_external_symbols()
1354 if (stringsize >= BYTES_IN_WORD) in aout_get_external_symbols()
[all …]
H A Dsom.c6294 unsigned int *stringsize) in som_bfd_prep_for_ar_write() argument
6300 *stringsize = 0; in som_bfd_prep_for_ar_write()
6352 *stringsize += strlen (sym->symbol.name) + 5; in som_bfd_prep_for_ar_write()
6353 while (*stringsize % 4) in som_bfd_prep_for_ar_write()
6354 (*stringsize)++; in som_bfd_prep_for_ar_write()
6658 unsigned int i, lst_size, nsyms, stringsize; in som_write_armap() local
6721 if (! som_bfd_prep_for_ar_write (abfd, &nsyms, &stringsize)) in som_write_armap()
6729 bfd_putb32 (stringsize, &lst.string_size); in som_write_armap()
6730 lst_size += stringsize; in som_write_armap()
6775 if (!som_bfd_ar_write_symbol_stuff (abfd, nsyms, stringsize, lst, elength)) in som_write_armap()
H A Decoff.c2843 bfd_size_type parsed_size, stringsize; in _bfd_ecoff_slurp_armap() local
2925 stringsize = parsed_size - (count * 8 + 8); in _bfd_ecoff_slurp_armap()
2986 if (name_offset > stringsize) in _bfd_ecoff_slurp_armap()
3021 unsigned int stringsize; in _bfd_ecoff_write_armap() local
3040 stringsize = stridx + padit; in _bfd_ecoff_write_armap()
3043 mapsize = symdefsize + stringsize + 8; in _bfd_ecoff_write_armap()
3149 H_PUT_32 (abfd, stringsize, temp); in _bfd_ecoff_write_armap()
H A DChangeLog-20113141 stringsize. Properly sanity check symdef_count. Remove redundant
H A DChangeLog-20202263 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any
/netbsd-src/usr.bin/elf2ecoff/
H A Delf2ecoff.c66 off_t stringsize; member
73 off_t stringsize; member
650 elfsymsp->stringsize = strsize; in elf_read_syms()
679 ecoff_strsize = ECOFF_ROUND(ecoffsymtab.stringsize, in elf_symbol_table_to_ecoff()
690 stringtaboff, ecoffsymtab.stringsize); in elf_symbol_table_to_ecoff()
693 padding = ecoff_strsize - ecoffsymtab.stringsize; in elf_symbol_table_to_ecoff()
694 safewrite(out, ecoffsymtab.stringtab, ecoffsymtab.stringsize, in elf_symbol_table_to_ecoff()
742 ecoffp->stringsize = elfp->stringsize; in translate_syms()
743 ecoffp->stringtab = malloc(elfp->stringsize); in translate_syms()
777 ecoffp->stringsize = nsp - newstrings; in translate_syms()
/netbsd-src/sbin/restore/
H A Dsymtab.c437 int32_t stringsize; member
519 hdr.stringsize = stroff; in dumpsymtable()
609 baseep = (struct entry *)(base + hdr.stringsize - sizeof(struct entry)); in initsymtable()
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dobjcopy.c4621 bfd_size_type symsize, stringsize; in write_debugging_info() local
4627 &stringsize)) in write_debugging_info()
4636 || !bfd_set_section_size (stabstrsec, stringsize) in write_debugging_info()
4652 stringsize)) in write_debugging_info()
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dobjcopy.c4727 bfd_size_type symsize, stringsize; in write_debugging_info() local
4734 &stringsize)) in write_debugging_info()
4744 || !bfd_set_section_size (stabstrsec, stringsize) in write_debugging_info()
4760 stringsize))) in write_debugging_info()
/netbsd-src/external/gpl3/gdb.old/dist/bfd/
H A DChangeLog-20113141 stringsize. Properly sanity check symdef_count. Remove redundant
H A DChangeLog-2017922 * aoutx.h (aout_get_external_symbols): Handle stringsize of zero,
/netbsd-src/external/gpl3/gdb/dist/bfd/
H A DChangeLog-20113141 stringsize. Properly sanity check symdef_count. Remove redundant
H A DChangeLog-20202263 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any
H A DChangeLog-2017922 * aoutx.h (aout_get_external_symbols): Handle stringsize of zero,

12