/toolchain/binutils/binutils-2.25/bfd/ |
D | reloc16.c | 154 long reloc_count; in bfd_coff_reloc16_relax_section() local 172 reloc_count = in bfd_coff_reloc16_relax_section() 175 if (reloc_count < 0) in bfd_coff_reloc16_relax_section() 196 if (reloc_count > 0) in bfd_coff_reloc16_relax_section() 203 amt = reloc_count + 1; in bfd_coff_reloc16_relax_section() 228 for (j = i + 1; j <= reloc_count; j++) in bfd_coff_reloc16_relax_section() 235 shrink = shrinks[reloc_count]; in bfd_coff_reloc16_relax_section() 259 long reloc_count; in bfd_coff_reloc16_get_relocated_section_contents() local 281 reloc_count = bfd_canonicalize_reloc (input_bfd, in bfd_coff_reloc16_get_relocated_section_contents() 285 if (reloc_count < 0) in bfd_coff_reloc16_get_relocated_section_contents() [all …]
|
D | cofflink.c | 635 o->reloc_count = 0; in _bfd_coff_final_link() 656 o->reloc_count += sec->reloc_count; in _bfd_coff_final_link() 664 if (sec->reloc_count > max_reloc_count) in _bfd_coff_final_link() 665 max_reloc_count = sec->reloc_count; in _bfd_coff_final_link() 670 ++o->reloc_count; in _bfd_coff_final_link() 672 if (o->reloc_count == 0) in _bfd_coff_final_link() 678 rel_filepos += o->reloc_count * relsz; in _bfd_coff_final_link() 681 if (obj_pe (abfd) && o->reloc_count >= 0xffff) in _bfd_coff_final_link() 735 if (o->reloc_count != 0) in _bfd_coff_final_link() 751 amt = o->reloc_count; in _bfd_coff_final_link() [all …]
|
D | mipsbsd.c | 351 for (count = 0; count < section->reloc_count; count++) in MY() 357 return section->reloc_count; in MY() 360 if (tblptr && section->reloc_count) in MY() 362 for (count = 0; count++ < section->reloc_count;) in MY() 365 return section->reloc_count; in MY() 373 for (count = 0; count++ < section->reloc_count;) in MY() 381 return section->reloc_count; in MY()
|
D | riscix.c | 122 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) * \ 124 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) * \ 398 unsigned int count = section->reloc_count; in riscix_squirt_out_relocs() 447 for (count = 0; count < section->reloc_count; count++) in MY() 453 return section->reloc_count; in MY() 456 if (tblptr && section->reloc_count) in MY() 458 for (count = 0; count++ < section->reloc_count;) in MY() 461 return section->reloc_count; in MY() 469 for (count = 0; count++ < section->reloc_count;) in MY() 478 return section->reloc_count; in MY()
|
D | i386lynx.c | 47 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) * \ 49 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) * \ 458 asect->reloc_count = count; in NAME() 472 unsigned int count = section->reloc_count; in NAME() 528 for (count = 0; count < section->reloc_count; count++) in NAME() 538 for (count = 0; count++ < section->reloc_count;) in NAME() 545 return section->reloc_count; in NAME()
|
D | bout.c | 269 unsigned int count = section->reloc_count; in b_out_squirt_out_relocs() 408 exec_hdr (abfd)->a_trsize = (obj_textsec (abfd)->reloc_count) * 8; in b_out_write_object_contents() 409 exec_hdr (abfd)->a_drsize = (obj_datasec (abfd)->reloc_count) * 8; in b_out_write_object_contents() 876 asect->reloc_count = count; in b_out_slurp_reloc_table() 896 for (count = 0; count < section->reloc_count; count++) in b_out_canonicalize_reloc() 909 for (count = 0; count++ < section->reloc_count;) in b_out_canonicalize_reloc() 915 return section->reloc_count; in b_out_canonicalize_reloc() 928 return sizeof (arelent *) * (asect->reloc_count + 1); in b_out_get_reloc_upper_bound() 1155 long reloc_count; in b_out_bfd_relax_section() local 1162 reloc_count = in b_out_bfd_relax_section() [all …]
|
D | coff-ppc.c | 954 relend = rel + input_section->reloc_count; in coff_ppc_relocate_section() 1557 if (sec->reloc_count == 0) in ppc_process_before_allocation() 1567 for (rel = i; rel < i + sec->reloc_count; ++rel) in ppc_process_before_allocation() 2025 o->reloc_count = 0; in ppc_bfd_coff_final_link() 2047 o->reloc_count += sec->reloc_count; in ppc_bfd_coff_final_link() 2055 if (sec->reloc_count > max_reloc_count) in ppc_bfd_coff_final_link() 2056 max_reloc_count = sec->reloc_count; in ppc_bfd_coff_final_link() 2061 ++o->reloc_count; in ppc_bfd_coff_final_link() 2063 if (o->reloc_count == 0) in ppc_bfd_coff_final_link() 2069 rel_filepos += o->reloc_count * relsz; in ppc_bfd_coff_final_link() [all …]
|
D | elf64-sparc.c | 39 return (sec->reloc_count * 2 + 1) * sizeof (arelent *); in elf64_sparc_get_reloc_upper_bound() 162 || asect->reloc_count == 0) in elf64_sparc_slurp_reloc_table() 181 asect->reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf64_sparc_slurp_reloc_table() 185 amt = asect->reloc_count; in elf64_sparc_slurp_reloc_table() 301 if (sec->reloc_count == 0) in elf64_sparc_write_relocs() 308 for (idx = 0; idx < sec->reloc_count; idx++) in elf64_sparc_write_relocs() 316 && idx < sec->reloc_count - 1) in elf64_sparc_write_relocs() 353 for (idx = 0; idx < sec->reloc_count; idx++) in elf64_sparc_write_relocs() 387 && idx < sec->reloc_count - 1) in elf64_sparc_write_relocs()
|
D | elf64-mips.c | 3621 return (sec->reloc_count * 3 + 1) * sizeof (arelent *); in mips_elf64_get_reloc_upper_bound() 3647 for (i = 0; i < section->reloc_count * 3; i++) in mips_elf64_canonicalize_reloc() 3652 return section->reloc_count * 3; in mips_elf64_canonicalize_reloc() 3704 bfd_size_type reloc_count, in mips_elf64_slurp_one_reloc_table() argument 3736 i < reloc_count; in mips_elf64_slurp_one_reloc_table() 3852 asect->reloc_count += (relent - relents) / 3; in mips_elf64_slurp_one_reloc_table() 3878 bfd_size_type reloc_count; in mips_elf64_slurp_reloc_table() local 3889 || asect->reloc_count == 0) in mips_elf64_slurp_reloc_table() 3893 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in mips_elf64_slurp_reloc_table() 3897 BFD_ASSERT (asect->reloc_count == reloc_count + reloc_count2); in mips_elf64_slurp_reloc_table() [all …]
|
D | xcofflink.c | 649 && enclosing->reloc_count > 0) in xcoff_read_internal_relocs() 670 sec->reloc_count * sizeof (struct internal_reloc)); in xcoff_read_internal_relocs() 1307 amt = o->reloc_count; in xcoff_link_add_symbols() 1567 amt = enclosing->reloc_count; in xcoff_link_add_symbols() 1573 if (relindx < enclosing->reloc_count in xcoff_link_add_symbols() 1708 amt = enclosing->reloc_count; in xcoff_link_add_symbols() 1717 while (relindx < enclosing->reloc_count in xcoff_link_add_symbols() 1724 ++csect->reloc_count; in xcoff_link_add_symbols() 2094 for (i = 0; i < o->reloc_count; i++, rel++, rel_csect++) in xcoff_link_add_symbols() 2162 o->reloc_count = 0; in xcoff_link_add_symbols() [all …]
|
D | oasys.c | 397 section->reloc_count = 0; in oasys_slurp_section_data() 471 section->reloc_count++; in oasys_slurp_section_data() 505 section->reloc_count++; in oasys_slurp_section_data() 714 return (asect->reloc_count + 1) * sizeof (arelent *); in oasys_get_reloc_upper_bound() 742 unsigned int reloc_count = 0; in oasys_canonicalize_reloc() local 749 return section->reloc_count = reloc_count; in oasys_canonicalize_reloc() 963 unsigned int relocs_to_go = s->reloc_count; in oasys_write_data() 966 if (s->reloc_count != 0) in oasys_write_data() 969 qsort (s->orelocation, s->reloc_count, sizeof (arelent **), comp); in oasys_write_data()
|
D | hp300hpux.c | 296 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) * in MY() 298 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) * in MY() 776 asect->reloc_count = count; in MY() 837 for (count = 0; count < section->reloc_count; count++) in MY() 847 for (count = 0; count++ < section->reloc_count;) in MY() 854 return section->reloc_count; in MY()
|
D | coffcode.h | 1925 section->reloc_count = hdr->s_nreloc = n.r_vaddr - 1; in coff_set_alignment_hook() 1956 real_sec->reloc_count = hdr->s_paddr; in coff_set_alignment_hook() 2666 amt = s->reloc_count; in coff_write_relocs() 2669 if (p == NULL && s->reloc_count > 0) in coff_write_relocs() 2672 qsort (p, s->reloc_count, sizeof (arelent *), compare_arelent_ptr); in coff_write_relocs() 2680 if (obj_pe (abfd) && s->reloc_count >= 0xffff) in coff_write_relocs() 2687 n.r_vaddr = s->reloc_count + 1; in coff_write_relocs() 2695 for (i = 0; i < s->reloc_count; i++) in coff_write_relocs() 3223 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff) in coff_compute_section_file_positions() 3592 unsigned long reloc_size = 0, reloc_count = 0; in coff_write_object_contents() local [all …]
|
D | elfxx-sparc.h | 27 unsigned int do_relax, reloc_count; member 33 ((struct _bfd_sparc_elf_section_data *) elf_section_data (sec))->reloc_count
|
D | elf32-xtensa.c | 831 qsort (internal_relocs, table_section->reloc_count, in xtensa_read_table_entries() 839 rel_end = internal_relocs + table_section->reloc_count; in xtensa_read_table_entries() 981 rel_end = relocs + sec->reloc_count; in elf_xtensa_check_relocs() 1295 relend = relocs + sec->reloc_count; in elf_xtensa_gc_sweep_hook() 1742 s->reloc_count = 0; in elf_xtensa_size_dynamic_sections() 1794 + srelgot->reloc_count * sizeof (Elf32_External_Rela)); in elf_xtensa_size_dynamic_sections() 1798 srelgot->reloc_count += 2; in elf_xtensa_size_dynamic_sections() 2582 relend = relocs + input_section->reloc_count; in elf_xtensa_relocate_section() 2880 srel->reloc_count); in elf_xtensa_relocate_section() 2893 + srel->reloc_count++ * sizeof (Elf32_External_Rela)); in elf_xtensa_relocate_section() [all …]
|
D | elfcode.h | 874 if (sec->reloc_count == 0) in elf_write_relocs() 887 rela_hdr->sh_size = rela_hdr->sh_entsize * sec->reloc_count; in elf_write_relocs() 923 for (idx = 0; idx < sec->reloc_count; idx++, dst_rela += extsize) in elf_write_relocs() 1382 bfd_size_type reloc_count, in elf_slurp_reloc_table_from_section() argument 1416 i < reloc_count; in elf_slurp_reloc_table_from_section() 1485 bfd_size_type reloc_count; in elf_slurp_reloc_table() local 1496 || asect->reloc_count == 0) in elf_slurp_reloc_table() 1500 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in elf_slurp_reloc_table() 1504 BFD_ASSERT (asect->reloc_count == reloc_count + reloc_count2); in elf_slurp_reloc_table() 1519 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf_slurp_reloc_table() [all …]
|
D | elf32-lm32.c | 188 fixup_offset = rofixup->reloc_count * 4; in _lm32fdpic_add_rofixup() 195 rofixup->reloc_count++; in _lm32fdpic_add_rofixup() 837 relend = relocs + input_section->reloc_count; in lm32_elf_relocate_section() 1035 loc += srelgot->reloc_count * sizeof (Elf32_External_Rela); in lm32_elf_relocate_section() 1037 ++srelgot->reloc_count; in lm32_elf_relocate_section() 1224 relend = relocs + sec->reloc_count; in lm32_elf_gc_sweep_hook() 1291 rel_end = relocs + sec->reloc_count; in lm32_elf_check_relocs() 1553 != (lm32fdpic_fixup32_section (info)->reloc_count * 4)) in lm32_elf_finish_dynamic_sections() 1558 lm32fdpic_fixup32_section (info)->reloc_count); in lm32_elf_finish_dynamic_sections() 1711 loc += srela->reloc_count * sizeof (Elf32_External_Rela); in lm32_elf_finish_dynamic_symbol() [all …]
|
D | reloc.c | 7556 long reloc_count; in bfd_generic_get_relocated_section_contents() local 7573 reloc_count = bfd_canonicalize_reloc (input_bfd, in bfd_generic_get_relocated_section_contents() 7577 if (reloc_count < 0) in bfd_generic_get_relocated_section_contents() 7580 if (reloc_count > 0) in bfd_generic_get_relocated_section_contents() 7618 os->orelocation[os->reloc_count] = *parent; in bfd_generic_get_relocated_section_contents() 7619 os->reloc_count++; in bfd_generic_get_relocated_section_contents()
|
/toolchain/binutils/binutils-2.25/gold/ |
D | reloc.cc | 341 size_t reloc_count = sh_size / reloc_size; in do_read_relocs() local 342 if (static_cast<off_t>(reloc_count * reloc_size) != sh_size) in do_read_relocs() 356 sr.reloc_count = reloc_count; in do_read_relocs() 411 p->contents->data(), p->reloc_count, in do_gc_process_relocs() 464 p->reloc_count, p->output_section, in do_scan_relocs() 477 rr->set_reloc_count(p->reloc_count); in do_scan_relocs() 481 p->reloc_count, in do_scan_relocs() 551 rr->set_reloc_count(p->reloc_count); in emit_relocs_scan() 584 p->reloc_count, in emit_relocs_scan_reltype() 620 size_t reloc_count = p->reloc_count; in incremental_relocs_scan_reltype() local [all …]
|
D | target-reloc.h | 52 size_t reloc_count, in scan_relocs() argument 63 for (size_t i = 0; i < reloc_count; ++i, prelocs += reloc_size) in scan_relocs() 264 size_t reloc_count, in relocate_section() argument 282 for (size_t i = 0; i < reloc_count; ++i, prelocs += reloc_size) in relocate_section() 544 size_t reloc_count, in scan_relocatable_relocs() argument 556 for (size_t i = 0; i < reloc_count; ++i, prelocs += reloc_size) in scan_relocatable_relocs() 619 size_t reloc_count, in relocate_relocs() argument 641 for (size_t i = 0; i < reloc_count; ++i, prelocs += reloc_size) in relocate_relocs()
|
/toolchain/binutils/binutils-2.25/binutils/ |
D | nlmconv.c | 1254 long reloc_count; in copy_sections() local 1257 reloc_count = bfd_canonicalize_reloc (inbfd, insec, relocs, symbols); in copy_sections() 1258 if (reloc_count < 0) in copy_sections() 1260 mangle_relocs (outbfd, insec, &relocs, &reloc_count, (char *) contents, in copy_sections() 1269 total_count = reloc_count + outsec->reloc_count; in copy_sections() 1272 outsec->reloc_count * sizeof (arelent *)); in copy_sections() 1273 memcpy (combined + outsec->reloc_count, relocs, in copy_sections() 1274 (size_t) (reloc_count * sizeof (arelent *))); in copy_sections() 1276 reloc_count = total_count; in copy_sections() 1280 bfd_set_reloc (outbfd, outsec, relocs, reloc_count); in copy_sections() [all …]
|
D | rescoff.c | 399 unsigned int reloc_count; member 497 cwi.reloc_count = 0; in write_coff_file() 535 bfd_set_reloc (abfd, sec, cwi.relocs, cwi.reloc_count); in write_coff_file() 717 (cwi->reloc_count + 2) * sizeof (arelent *)); in coff_res_to_bin() 718 cwi->relocs[cwi->reloc_count] = r; in coff_res_to_bin() 719 cwi->relocs[cwi->reloc_count + 1] = NULL; in coff_res_to_bin() 720 ++cwi->reloc_count; in coff_res_to_bin()
|
/toolchain/binutils/binutils-2.25/ld/emultempl/ |
D | cr16elf.em | 64 /* Note that we assume that the reloc_count field has already 71 if (datasec != NULL && datasec->reloc_count > 0) 84 datasec->reloc_count * 8)) 103 && sec->reloc_count == 0 ) 149 if (datasec == NULL || datasec->reloc_count == 0)
|
D | m68kelf.em | 92 /* Note that we assume that the reloc_count field has already 99 if (datasec != NULL && datasec->reloc_count > 0) 111 datasec->reloc_count * 12)) 132 && sec->reloc_count != 0) 163 if (datasec == NULL || datasec->reloc_count == 0)
|
D | m68kcoff.em | 81 /* Note that we assume that the reloc_count field has already 88 if (datasec != NULL && datasec->reloc_count > 0) 100 datasec->reloc_count * 12)) 118 && sec->reloc_count != 0) 143 if (datasec == NULL || datasec->reloc_count == 0)
|