/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | coff-z8k.c | 205 asection * input_section = link_order->u.indirect.section; in extra_case() local 206 bfd_size_type end = bfd_get_section_limit_octets (in_abfd, input_section); in extra_case() 215 in_abfd, input_section, reloc); in extra_case() 223 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 235 input_section), in extra_case() 241 input_section); in extra_case() 257 input_section))), in extra_case() 265 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 274 input_section); in extra_case() 276 + input_section->output_offset in extra_case() [all …]
|
H A D | reloc.c | 661 asection *input_section, in bfd_perform_relocation() argument 695 input_section, output_bfd, in bfd_perform_relocation() 704 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 713 octets = reloc_entry->address * bfd_octets_per_byte (abfd, input_section); in bfd_perform_relocation() 714 if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octets)) in bfd_perform_relocation() 740 output_base *= bfd_octets_per_byte (abfd, input_section); in bfd_perform_relocation() 781 input_section->output_section->vma + input_section->output_offset; in bfd_perform_relocation() 795 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 806 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 1002 asection *input_section, in bfd_install_relocation() argument [all …]
|
H A D | coff-aarch64.c | 50 asection *input_section, in coff_aarch64_rel21_reloc() argument 58 input_section, reloc_entry->address)) in coff_aarch64_rel21_reloc() 79 + input_section->output_offset in coff_aarch64_rel21_reloc() 80 + input_section->output_section->vma); in coff_aarch64_rel21_reloc() 100 asection *input_section, in coff_aarch64_po12l_reloc() argument 108 input_section, reloc_entry->address)) in coff_aarch64_po12l_reloc() 159 asection *input_section, in coff_aarch64_addr32nb_reloc() argument 167 input_section, reloc_entry->address)) in coff_aarch64_addr32nb_reloc() 185 bfd *obfd = input_section->output_section->owner; in coff_aarch64_addr32nb_reloc() 209 asection *input_section, in coff_aarch64_secrel_reloc() argument [all …]
|
H A D | reloc16.c | 46 asection *input_section) in bfd_coff_reloc16_get_value() argument 64 h = bfd_wrapped_link_hash_lookup (input_section->owner, link_info, in bfd_coff_reloc16_get_value() 84 input_section->owner, input_section, reloc->address, true); in bfd_coff_reloc16_get_value() 104 asection *input_section, in bfd_perform_slip() argument 117 if (p->section == input_section) in bfd_perform_slip() 141 asection *input_section, in bfd_coff_reloc16_relax_section() argument 146 bfd *input_bfd = input_section->owner; in bfd_coff_reloc16_relax_section() 149 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in bfd_coff_reloc16_relax_section() 170 bfd_canonicalize_reloc (input_bfd, input_section, reloc_vector, in bfd_coff_reloc16_relax_section() 217 shrink = bfd_coff_reloc16_estimate (abfd, input_section, *parent, in bfd_coff_reloc16_relax_section() [all …]
|
H A D | coff-alpha.c | 736 asection *input_section = link_order->u.indirect.section; in alpha_ecoff_get_relocated_section_contents() local 746 reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in alpha_ecoff_get_relocated_section_contents() 751 if (!bfd_get_full_section_contents (input_bfd, input_section, &data)) in alpha_ecoff_get_relocated_section_contents() 764 reloc_count = bfd_canonicalize_reloc (input_bfd, input_section, in alpha_ecoff_get_relocated_section_contents() 836 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 849 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 852 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 864 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 891 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 904 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() [all …]
|
H A D | coff-mips.c | 402 asection *input_section, in mips_generic_reloc() argument 410 reloc_entry->address += input_section->output_offset; in mips_generic_reloc() 431 asection *input_section, in mips_refhi_reloc() argument 445 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 463 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mips_refhi_reloc() 476 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 490 asection *input_section, in mips_reflo_reloc() argument 506 * OCTETS_PER_BYTE (abfd, input_section)); in mips_reflo_reloc() 510 input_section, octets)) in mips_reflo_reloc() 546 input_section, output_bfd, error_message); in mips_reflo_reloc() [all …]
|
H A D | elf32-dlx.c | 56 asection *input_section, in _bfd_dlx_elf_hi16_reloc() argument 68 input_section, output_bfd, error_message); in _bfd_dlx_elf_hi16_reloc() 76 reloc_entry->address += input_section->output_offset; in _bfd_dlx_elf_hi16_reloc() 92 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in _bfd_dlx_elf_hi16_reloc() 116 asection *input_section, in elf32_dlx_relocate16() argument 130 input_section, output_bfd, error_message); in elf32_dlx_relocate16() 138 if (strcmp (input_section->name, symbol->section->output_section->name) != 0) in elf32_dlx_relocate16() 147 allignment = 1 << (input_section->output_section->alignment_power - 1); in elf32_dlx_relocate16() 154 vallo += (((unsigned long)(input_section->output_section->vma + in elf32_dlx_relocate16() 155 input_section->output_offset) + in elf32_dlx_relocate16() [all …]
|
H A D | elf32-pru.c | 448 asection *input_section, in pru_elf32_do_pmem_relocate() argument 455 return _bfd_final_link_relocate (howto, abfd, input_section, in pru_elf32_do_pmem_relocate() 464 asection *input_section, in pru_elf32_do_s10_pcrel_relocate() argument 474 if (address > bfd_get_section_limit (input_bfd, input_section)) in pru_elf32_do_s10_pcrel_relocate() 480 relocation = relocation + addend - (input_section->output_section->vma in pru_elf32_do_s10_pcrel_relocate() 481 + input_section->output_offset) - address; in pru_elf32_do_s10_pcrel_relocate() 513 asection *input_section, in pru_elf32_do_u8_pcrel_relocate() argument 522 relocation = symbol_value + addend - (input_section->output_section->vma in pru_elf32_do_u8_pcrel_relocate() 523 + input_section->output_offset) - offset; in pru_elf32_do_u8_pcrel_relocate() 531 return _bfd_final_link_relocate (howto, abfd, input_section, in pru_elf32_do_u8_pcrel_relocate() [all …]
|
H A D | coff-mcore.c | 215 asection *input_section, in mcore_emit_base_file_entry() argument 219 - input_section->vma in mcore_emit_base_file_entry() 220 + input_section->output_offset in mcore_emit_base_file_entry() 221 + input_section->output_section->vma; in mcore_emit_base_file_entry() 238 asection * input_section ATTRIBUTE_UNUSED, in mcore_coff_unsupported_reloc() 350 asection * input_section, in coff_mcore_relocate_section() argument 381 relend = rel + input_section->reloc_count; in coff_mcore_relocate_section() 398 loc = contents + rel->r_vaddr - input_section->vma; in coff_mcore_relocate_section() 414 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h, in coff_mcore_relocate_section() 465 (info, h->root.root.string, input_bfd, input_section, in coff_mcore_relocate_section() [all …]
|
H A D | elf32-fr30.c | 239 asection *input_section, in fr30_elf_i20_reloc() argument 252 reloc_entry->address += input_section->output_offset; in fr30_elf_i20_reloc() 283 asection *input_section, in fr30_elf_i32_reloc() argument 295 reloc_entry->address += input_section->output_offset; in fr30_elf_i32_reloc() 396 asection *input_section, in fr30_final_link_relocate() argument 431 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 432 input_section->output_offset); in fr30_final_link_relocate() 448 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 449 input_section->output_offset); in fr30_final_link_relocate() 462 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in fr30_final_link_relocate() [all …]
|
H A D | cpu-ns32k.c | 150 asection * input_section, in do_ns32k_reloc() argument 168 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 181 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in do_ns32k_reloc() 239 input_section->output_section->vma + input_section->output_offset; in do_ns32k_reloc() 253 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 264 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 741 asection *input_section, in _bfd_ns32k_reloc_disp() argument 745 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_disp() 756 asection *input_section, in _bfd_ns32k_reloc_imm() argument 760 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_imm() [all …]
|
H A D | elf64-mmix.c | 1282 asection *input_section, in mmix_elf_reloc() argument 1293 input_section, output_bfd, error_message); in mmix_elf_reloc() 1306 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mmix_elf_reloc() 1338 reloc_entry->address += input_section->output_offset; in mmix_elf_reloc() 1342 return mmix_final_link_relocate (reloc_entry->howto, input_section, in mmix_elf_reloc() 1357 asection *input_section, in mmix_elf_relocate_section() argument 1370 size = input_section->rawsize ? input_section->rawsize : input_section->size; in mmix_elf_relocate_section() 1373 relend = relocs + input_section->reloc_count; in mmix_elf_relocate_section() 1376 if (input_section->rawsize != 0 in mmix_elf_relocate_section() 1377 && input_section->size > input_section->rawsize) in mmix_elf_relocate_section() [all …]
|
H A D | coff-arm.c | 102 asection *input_section, in coff_arm_reloc() argument 121 * OCTETS_PER_BYTE (abfd, input_section)); in coff_arm_reloc() 124 if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octets)) in coff_arm_reloc() 585 asection *input_section ATTRIBUTE_UNUSED, in aoutarm_fix_pcrel_26_done() 600 asection *input_section, in aoutarm_fix_pcrel_26() argument 616 if (symbol->section->name != input_section->name in aoutarm_fix_pcrel_26() 626 relocation -= input_section->output_section->vma; in aoutarm_fix_pcrel_26() 627 relocation -= input_section->output_offset; in aoutarm_fix_pcrel_26() 658 asection *input_section, in coff_thumb_pcrel_common() argument 704 if (symbol->section->name != input_section->name in coff_thumb_pcrel_common() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | coff-z8k.c | 205 asection * input_section = link_order->u.indirect.section; in extra_case() local 211 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 223 input_section), in extra_case() 229 input_section); in extra_case() 246 input_section))), in extra_case() 254 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 263 input_section); in extra_case() 265 + input_section->output_offset in extra_case() 266 + input_section->output_section->vma); in extra_case() 276 reloc->howto->name, reloc->addend, input_section->owner, in extra_case() [all …]
|
H A D | reloc16.c | 46 asection *input_section) in bfd_coff_reloc16_get_value() argument 64 h = bfd_wrapped_link_hash_lookup (input_section->owner, link_info, in bfd_coff_reloc16_get_value() 84 input_section->owner, input_section, reloc->address, true); in bfd_coff_reloc16_get_value() 104 asection *input_section, in bfd_perform_slip() argument 117 if (p->section == input_section) in bfd_perform_slip() 141 asection *input_section, in bfd_coff_reloc16_relax_section() argument 146 bfd *input_bfd = input_section->owner; in bfd_coff_reloc16_relax_section() 149 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in bfd_coff_reloc16_relax_section() 170 bfd_canonicalize_reloc (input_bfd, input_section, reloc_vector, in bfd_coff_reloc16_relax_section() 217 shrink = bfd_coff_reloc16_estimate (abfd, input_section, *parent, in bfd_coff_reloc16_relax_section() [all …]
|
H A D | reloc.c | 656 asection *input_section, in bfd_perform_relocation() argument 690 input_section, output_bfd, in bfd_perform_relocation() 699 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 708 octets = reloc_entry->address * bfd_octets_per_byte (abfd, input_section); in bfd_perform_relocation() 709 if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octets)) in bfd_perform_relocation() 735 output_base *= bfd_octets_per_byte (abfd, input_section); in bfd_perform_relocation() 776 input_section->output_section->vma + input_section->output_offset; in bfd_perform_relocation() 790 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 801 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 999 asection *input_section, in bfd_install_relocation() argument [all …]
|
H A D | coff-mips.c | 402 asection *input_section, in mips_generic_reloc() argument 410 reloc_entry->address += input_section->output_offset; in mips_generic_reloc() 442 asection *input_section, in mips_refhi_reloc() argument 456 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 474 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mips_refhi_reloc() 487 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 501 asection *input_section, in mips_reflo_reloc() argument 517 * OCTETS_PER_BYTE (abfd, input_section)); in mips_reflo_reloc() 521 input_section, octets)) in mips_reflo_reloc() 557 input_section, output_bfd, error_message); in mips_reflo_reloc() [all …]
|
H A D | coff-alpha.c | 736 asection *input_section = link_order->u.indirect.section; in alpha_ecoff_get_relocated_section_contents() local 746 reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in alpha_ecoff_get_relocated_section_contents() 750 if (!bfd_get_full_section_contents (input_bfd, input_section, &data)) in alpha_ecoff_get_relocated_section_contents() 763 reloc_count = bfd_canonicalize_reloc (input_bfd, input_section, in alpha_ecoff_get_relocated_section_contents() 825 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 838 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 841 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 853 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 889 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 903 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() [all …]
|
H A D | elf32-dlx.c | 56 asection *input_section, in _bfd_dlx_elf_hi16_reloc() argument 68 input_section, output_bfd, error_message); in _bfd_dlx_elf_hi16_reloc() 76 reloc_entry->address += input_section->output_offset; in _bfd_dlx_elf_hi16_reloc() 92 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in _bfd_dlx_elf_hi16_reloc() 116 asection *input_section, in elf32_dlx_relocate16() argument 130 input_section, output_bfd, error_message); in elf32_dlx_relocate16() 138 if (strcmp (input_section->name, symbol->section->output_section->name) != 0) in elf32_dlx_relocate16() 147 allignment = 1 << (input_section->output_section->alignment_power - 1); in elf32_dlx_relocate16() 154 vallo += (((unsigned long)(input_section->output_section->vma + in elf32_dlx_relocate16() 155 input_section->output_offset) + in elf32_dlx_relocate16() [all …]
|
H A D | elf32-pru.c | 448 asection *input_section, in pru_elf32_do_pmem_relocate() argument 455 return _bfd_final_link_relocate (howto, abfd, input_section, in pru_elf32_do_pmem_relocate() 464 asection *input_section, in pru_elf32_do_s10_pcrel_relocate() argument 474 if (address > bfd_get_section_limit (input_bfd, input_section)) in pru_elf32_do_s10_pcrel_relocate() 480 relocation = relocation + addend - (input_section->output_section->vma in pru_elf32_do_s10_pcrel_relocate() 481 + input_section->output_offset) - address; in pru_elf32_do_s10_pcrel_relocate() 513 asection *input_section, in pru_elf32_do_u8_pcrel_relocate() argument 522 relocation = symbol_value + addend - (input_section->output_section->vma in pru_elf32_do_u8_pcrel_relocate() 523 + input_section->output_offset) - offset; in pru_elf32_do_u8_pcrel_relocate() 531 return _bfd_final_link_relocate (howto, abfd, input_section, in pru_elf32_do_u8_pcrel_relocate() [all …]
|
H A D | coff-mcore.c | 215 asection *input_section, in mcore_emit_base_file_entry() argument 219 - input_section->vma in mcore_emit_base_file_entry() 220 + input_section->output_offset in mcore_emit_base_file_entry() 221 + input_section->output_section->vma; in mcore_emit_base_file_entry() 238 asection * input_section ATTRIBUTE_UNUSED, in mcore_coff_unsupported_reloc() 350 asection * input_section, in coff_mcore_relocate_section() argument 381 relend = rel + input_section->reloc_count; in coff_mcore_relocate_section() 398 loc = contents + rel->r_vaddr - input_section->vma; in coff_mcore_relocate_section() 414 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h, in coff_mcore_relocate_section() 459 (info, h->root.root.string, input_bfd, input_section, in coff_mcore_relocate_section() [all …]
|
H A D | elf32-fr30.c | 239 asection *input_section, in fr30_elf_i20_reloc() argument 252 reloc_entry->address += input_section->output_offset; in fr30_elf_i20_reloc() 283 asection *input_section, in fr30_elf_i32_reloc() argument 295 reloc_entry->address += input_section->output_offset; in fr30_elf_i32_reloc() 396 asection *input_section, in fr30_final_link_relocate() argument 431 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 432 input_section->output_offset); in fr30_final_link_relocate() 448 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 449 input_section->output_offset); in fr30_final_link_relocate() 462 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in fr30_final_link_relocate() [all …]
|
H A D | cpu-ns32k.c | 150 asection * input_section, in do_ns32k_reloc() argument 168 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 181 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in do_ns32k_reloc() 239 input_section->output_section->vma + input_section->output_offset; in do_ns32k_reloc() 253 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 264 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 741 asection *input_section, in _bfd_ns32k_reloc_disp() argument 745 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_disp() 756 asection *input_section, in _bfd_ns32k_reloc_imm() argument 760 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_imm() [all …]
|
H A D | coff-arm.c | 102 asection *input_section, in coff_arm_reloc() argument 121 * OCTETS_PER_BYTE (abfd, input_section)); in coff_arm_reloc() 124 if (!bfd_reloc_offset_in_range (howto, abfd, input_section, octets)) in coff_arm_reloc() 585 asection *input_section ATTRIBUTE_UNUSED, in aoutarm_fix_pcrel_26_done() 600 asection *input_section, in aoutarm_fix_pcrel_26() argument 616 if (symbol->section->name != input_section->name in aoutarm_fix_pcrel_26() 626 relocation -= input_section->output_section->vma; in aoutarm_fix_pcrel_26() 627 relocation -= input_section->output_offset; in aoutarm_fix_pcrel_26() 658 asection *input_section, in coff_thumb_pcrel_common() argument 704 if (symbol->section->name != input_section->name in coff_thumb_pcrel_common() [all …]
|
H A D | elf64-mmix.c | 1282 asection *input_section, in mmix_elf_reloc() argument 1293 input_section, output_bfd, error_message); in mmix_elf_reloc() 1306 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mmix_elf_reloc() 1338 reloc_entry->address += input_section->output_offset; in mmix_elf_reloc() 1342 return mmix_final_link_relocate (reloc_entry->howto, input_section, in mmix_elf_reloc() 1357 asection *input_section, in mmix_elf_relocate_section() argument 1370 size = input_section->rawsize ? input_section->rawsize : input_section->size; in mmix_elf_relocate_section() 1373 relend = relocs + input_section->reloc_count; in mmix_elf_relocate_section() 1376 if (input_section->rawsize != 0 in mmix_elf_relocate_section() 1377 && input_section->size > input_section->rawsize) in mmix_elf_relocate_section() [all …]
|