| /openbsd/src/gnu/usr.bin/binutils/ld/ |
| D | ldcref.c | 486 long relsize; in check_reloc_refs() local 515 relsize = bfd_get_reloc_upper_bound (abfd, sec); in check_reloc_refs() 516 if (relsize < 0) in check_reloc_refs() 518 if (relsize == 0) in check_reloc_refs() 521 relpp = xmalloc (relsize); in check_reloc_refs()
|
| D | pe-dll.c | 1019 int relsize, nrelocs, i; in pe_walk_relocs_of_symbol() local 1029 relsize = bfd_get_reloc_upper_bound (b, s); in pe_walk_relocs_of_symbol() 1030 relocs = xmalloc (relsize); in pe_walk_relocs_of_symbol() 1078 int relsize, nrelocs, i; in generate_reloc() local 1108 relsize = bfd_get_reloc_upper_bound (b, s); in generate_reloc() 1109 relocs = xmalloc (relsize); in generate_reloc() 1509 static int relcount = 0, relsize = 0; variable 1514 if (relcount >= relsize - 1) in quick_reloc() 1516 relsize += 10; in quick_reloc() 1518 reltab = xrealloc (reltab, relsize * sizeof (arelent)); in quick_reloc() [all …]
|
| D | ldmain.c | 1244 long relsize; in warning_find_reloc() local 1252 relsize = bfd_get_reloc_upper_bound (abfd, sec); in warning_find_reloc() 1253 if (relsize < 0) in warning_find_reloc() 1255 if (relsize == 0) in warning_find_reloc() 1258 relpp = xmalloc (relsize); in warning_find_reloc()
|
| /openbsd/src/gnu/usr.bin/binutils/binutils/ |
| D | objdump.c | 1618 long relsize; in disassemble_section() local 1620 relsize = bfd_get_reloc_upper_bound (abfd, section); in disassemble_section() 1621 if (relsize < 0) in disassemble_section() 1624 if (relsize > 0) in disassemble_section() 1626 rel_ppstart = rel_pp = xmalloc (relsize); in disassemble_section() 1870 long relsize = bfd_get_dynamic_reloc_upper_bound (abfd); in disassemble_data() local 1872 if (relsize < 0) in disassemble_data() 1875 if (relsize > 0) in disassemble_data() 1877 aux.dynrelbuf = xmalloc (relsize); in disassemble_data() 2432 long relsize; in dump_relocs_in_section() local [all …]
|
| D | objcopy.c | 1965 long relsize; in copy_section() local 1990 relsize = 0; in copy_section() 1993 relsize = bfd_get_reloc_upper_bound (ibfd, isection); in copy_section() 1995 if (relsize < 0) in copy_section() 1998 if (relsize == -1 && bfd_get_error () == bfd_error_invalid_operation) in copy_section() 1999 relsize = 0; in copy_section() 2005 if (relsize == 0) in copy_section() 2009 relpp = xmalloc (relsize); in copy_section() 2022 temp_relpp = xmalloc (relsize); in copy_section() 2148 long relsize; in mark_symbols_used_in_relocations() local [all …]
|
| D | coffgrok.c | 138 long relsize; in do_sections_p1() local 143 relsize = bfd_get_reloc_upper_bound (abfd, section); in do_sections_p1() 144 if (relsize < 0) in do_sections_p1() 146 if (relsize == 0) in do_sections_p1() 148 relpp = (arelent **) xmalloc (relsize); in do_sections_p1()
|
| D | nm.c | 1591 long relsize; in get_relocs() local 1593 relsize = bfd_get_reloc_upper_bound (abfd, sec); in get_relocs() 1594 if (relsize < 0) in get_relocs() 1597 *data->relocs = (arelent **) xmalloc (relsize); in get_relocs()
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/ld/ |
| D | ldcref.c | 522 long relsize; in check_reloc_refs() local 555 relsize = bfd_get_reloc_upper_bound (abfd, sec); in check_reloc_refs() 556 if (relsize < 0) in check_reloc_refs() 558 if (relsize == 0) in check_reloc_refs() 561 relpp = xmalloc (relsize); in check_reloc_refs()
|
| D | pe-dll.c | 1066 int relsize, nrelocs, i; in pe_walk_relocs_of_symbol() local 1076 relsize = bfd_get_reloc_upper_bound (b, s); in pe_walk_relocs_of_symbol() 1077 relocs = xmalloc (relsize); in pe_walk_relocs_of_symbol() 1125 int relsize, nrelocs, i; in generate_reloc() local 1155 relsize = bfd_get_reloc_upper_bound (b, s); in generate_reloc() 1156 relocs = xmalloc (relsize); in generate_reloc() 1553 static int relcount = 0, relsize = 0; variable 1558 if (relcount >= relsize - 1) in quick_reloc() 1560 relsize += 10; in quick_reloc() 1562 reltab = xrealloc (reltab, relsize * sizeof (arelent)); in quick_reloc() [all …]
|
| D | ldmain.c | 1302 long relsize; in warning_find_reloc() local 1310 relsize = bfd_get_reloc_upper_bound (abfd, sec); in warning_find_reloc() 1311 if (relsize < 0) in warning_find_reloc() 1313 if (relsize == 0) in warning_find_reloc() 1316 relpp = xmalloc (relsize); in warning_find_reloc()
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/binutils/ |
| D | objdump.c | 1664 long relsize; in disassemble_section() local 1666 relsize = bfd_get_reloc_upper_bound (abfd, section); in disassemble_section() 1667 if (relsize < 0) in disassemble_section() 1670 if (relsize > 0) in disassemble_section() 1672 rel_ppstart = rel_pp = xmalloc (relsize); in disassemble_section() 1929 long relsize = bfd_get_dynamic_reloc_upper_bound (abfd); in disassemble_data() local 1931 if (relsize < 0) in disassemble_data() 1934 if (relsize > 0) in disassemble_data() 1936 aux.dynrelbuf = xmalloc (relsize); in disassemble_data() 2648 long relsize; in dump_relocs_in_section() local [all …]
|
| D | coffgrok.c | 138 long relsize; in do_sections_p1() local 143 relsize = bfd_get_reloc_upper_bound (abfd, section); in do_sections_p1() 144 if (relsize < 0) in do_sections_p1() 146 if (relsize == 0) in do_sections_p1() 148 relpp = (arelent **) xmalloc (relsize); in do_sections_p1()
|
| D | objcopy.c | 2209 long relsize; in copy_section() local 2234 relsize = 0; in copy_section() 2237 relsize = bfd_get_reloc_upper_bound (ibfd, isection); in copy_section() 2239 if (relsize < 0) in copy_section() 2242 if (relsize == -1 && bfd_get_error () == bfd_error_invalid_operation) in copy_section() 2243 relsize = 0; in copy_section() 2249 if (relsize == 0) in copy_section() 2253 relpp = xmalloc (relsize); in copy_section() 2266 temp_relpp = xmalloc (relsize); in copy_section() 2389 long relsize; in mark_symbols_used_in_relocations() local [all …]
|
| D | nm.c | 769 long relsize; in get_relocs() local 771 relsize = bfd_get_reloc_upper_bound (abfd, sec); in get_relocs() 772 if (relsize < 0) in get_relocs() 775 *data->relocs = xmalloc (relsize); in get_relocs()
|
| /openbsd/src/gnu/usr.bin/binutils/bfd/ |
| D | linker.c | 2008 long relsize; in _bfd_generic_final_link() local 2015 relsize = bfd_get_reloc_upper_bound (input_bfd, in _bfd_generic_final_link() 2017 if (relsize < 0) in _bfd_generic_final_link() 2019 relocs = bfd_malloc (relsize); in _bfd_generic_final_link() 2020 if (!relocs && relsize != 0) in _bfd_generic_final_link()
|
| D | ecoff.c | 2235 bfd_size_type relsize; local 2238 relsize = current->reloc_count * external_reloc_size; 2239 reloc_size += relsize; 2240 reloc_base += relsize;
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/bfd/ |
| D | linker.c | 2054 long relsize; in _bfd_generic_final_link() local 2061 relsize = bfd_get_reloc_upper_bound (input_bfd, in _bfd_generic_final_link() 2063 if (relsize < 0) in _bfd_generic_final_link() 2065 relocs = bfd_malloc (relsize); in _bfd_generic_final_link() 2066 if (!relocs && relsize != 0) in _bfd_generic_final_link()
|
| D | ecoff.c | 2105 bfd_size_type relsize; in ecoff_compute_reloc_file_positions() local 2108 relsize = current->reloc_count * external_reloc_size; in ecoff_compute_reloc_file_positions() 2109 reloc_size += relsize; in ecoff_compute_reloc_file_positions() 2110 reloc_base += relsize; in ecoff_compute_reloc_file_positions()
|
| D | elf64-ppc.c | 8276 bfd_size_type relsize; in ppc_build_one_stub() local 8277 relsize = stub_entry->stub_sec->reloc_count * sizeof (*relocs); in ppc_build_one_stub() 8278 relocs = bfd_alloc (htab->stub_bfd, relsize); in ppc_build_one_stub() 8282 elfsec_data->rel_hdr.sh_size = relsize; in ppc_build_one_stub()
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/ld/emultempl/ |
| D | pe.em | 1071 long relsize; 1079 relsize = bfd_get_reloc_upper_bound (is->the_bfd, sec); 1080 if (relsize < 1) 1091 relocs = (arelent **) xmalloc ((size_t) relsize);
|
| /openbsd/src/gnu/usr.bin/binutils/ld/emultempl/ |
| D | pe.em | 1032 long relsize; 1040 relsize = bfd_get_reloc_upper_bound (is->the_bfd, sec); 1041 if (relsize < 1) 1052 relocs = (arelent **) xmalloc ((size_t) relsize);
|