/toolchain/binutils/binutils-2.25/bfd/ |
D | coff-w65.c | 109 asection *input_section, in w65_reloc16_estimate() argument 136 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate() 146 bfd_perform_slip (abfd, 2, input_section, address); in w65_reloc16_estimate() 155 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate() 157 dot = input_section->output_section->vma + in w65_reloc16_estimate() 158 input_section->output_offset + address; in w65_reloc16_estimate() 172 bfd_perform_slip (abfd, 2, input_section, address); in w65_reloc16_estimate() 177 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in w65_reloc16_estimate() 179 dot = input_section->output_section->vma + in w65_reloc16_estimate() 180 input_section->output_offset + address; in w65_reloc16_estimate() [all …]
|
D | coff-h8300.c | 202 asection * input_section ATTRIBUTE_UNUSED, in special() 210 reloc_entry->address += input_section->output_offset; in special() 372 h8300_symbol_address_p (bfd *abfd, asection *input_section, bfd_vma address) in h8300_symbol_address_p() argument 385 if (p->section == input_section in h8300_symbol_address_p() 386 && (input_section->output_section->vma in h8300_symbol_address_p() 387 + input_section->output_offset in h8300_symbol_address_p() 404 h8300_reloc16_estimate (bfd *abfd, asection *input_section, arelent *reloc, in h8300_reloc16_estimate() argument 419 if (input_section != last_input_section) in h8300_reloc16_estimate() 430 value = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in h8300_reloc16_estimate() 433 dot = (input_section->output_section->vma in h8300_reloc16_estimate() [all …]
|
D | reloc16.c | 47 asection *input_section) in bfd_coff_reloc16_get_value() argument 65 h = bfd_wrapped_link_hash_lookup (input_section->owner, link_info, in bfd_coff_reloc16_get_value() 85 input_section->owner, input_section, reloc->address, in bfd_coff_reloc16_get_value() 107 asection *input_section, in bfd_perform_slip() argument 120 if (p->section == input_section) in bfd_perform_slip() 144 asection *input_section, in bfd_coff_reloc16_relax_section() argument 149 bfd *input_bfd = input_section->owner; in bfd_coff_reloc16_relax_section() 152 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in bfd_coff_reloc16_relax_section() 173 bfd_canonicalize_reloc (input_bfd, input_section, reloc_vector, in bfd_coff_reloc16_relax_section() 220 shrink = bfd_coff_reloc16_estimate (abfd, input_section, *parent, in bfd_coff_reloc16_relax_section() [all …]
|
D | coff-z8k.c | 198 asection * input_section = link_order->u.indirect.section; in extra_case() local 204 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 216 input_section), in extra_case() 222 input_section); in extra_case() 239 input_section))), in extra_case() 247 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 256 input_section); in extra_case() 258 + input_section->output_offset in extra_case() 259 + input_section->output_section->vma); in extra_case() 271 reloc->howto->name, reloc->addend, input_section->owner, in extra_case() [all …]
|
D | coff-h8500.c | 169 asection *input_section = link_order->u.indirect.section; in extra_case() local 175 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 183 (bfd_coff_reloc16_get_value (reloc, link_info, input_section) in extra_case() 192 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 200 bfd_coff_reloc16_get_value (reloc, link_info, input_section), in extra_case() 209 (bfd_coff_reloc16_get_value (reloc, link_info, input_section) in extra_case() 219 int v = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 229 int v = bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 239 input_section); in extra_case() 241 + input_section->output_offset in extra_case() [all …]
|
D | reloc.c | 575 asection *input_section, in bfd_perform_relocation() argument 591 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 610 input_section, output_bfd, in bfd_perform_relocation() 617 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in bfd_perform_relocation() 677 input_section->output_section->vma + input_section->output_offset; in bfd_perform_relocation() 691 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 702 reloc_entry->address += input_section->output_offset; in bfd_perform_relocation() 962 asection *input_section, in bfd_install_relocation() argument 977 reloc_entry->address += input_section->output_offset; in bfd_install_relocation() 994 input_section, abfd, error_message); in bfd_install_relocation() [all …]
|
D | elf32-i860.c | 35 asection *input_section, in i860_howto_pc26_reloc() argument 48 reloc_entry->address += input_section->output_offset; in i860_howto_pc26_reloc() 66 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in i860_howto_pc26_reloc() 70 relocation -= (input_section->output_section->vma in i860_howto_pc26_reloc() 71 + input_section->output_offset in i860_howto_pc26_reloc() 98 asection *input_section, in i860_howto_pc16_reloc() argument 111 reloc_entry->address += input_section->output_offset; in i860_howto_pc16_reloc() 129 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in i860_howto_pc16_reloc() 133 relocation -= (input_section->output_section->vma in i860_howto_pc16_reloc() 134 + input_section->output_offset in i860_howto_pc16_reloc() [all …]
|
D | coff-mips.c | 392 asection *input_section, in mips_generic_reloc() argument 400 reloc_entry->address += input_section->output_offset; in mips_generic_reloc() 432 asection *input_section, in mips_refhi_reloc() argument 446 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 464 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mips_refhi_reloc() 477 reloc_entry->address += input_section->output_offset; in mips_refhi_reloc() 491 asection *input_section, in mips_reflo_reloc() argument 541 input_section, output_bfd, error_message); in mips_reflo_reloc() 552 asection *input_section, in mips_gprel_reloc() argument 570 reloc_entry->address += input_section->output_offset; in mips_gprel_reloc() [all …]
|
D | coff-alpha.c | 734 asection *input_section = link_order->u.indirect.section; in alpha_ecoff_get_relocated_section_contents() local 735 long reloc_size = bfd_get_reloc_upper_bound (input_bfd, input_section); in alpha_ecoff_get_relocated_section_contents() 751 sz = input_section->rawsize ? input_section->rawsize : input_section->size; in alpha_ecoff_get_relocated_section_contents() 752 if (! bfd_get_section_contents (input_bfd, input_section, data, 0, sz)) in alpha_ecoff_get_relocated_section_contents() 755 reloc_count = bfd_canonicalize_reloc (input_bfd, input_section, in alpha_ecoff_get_relocated_section_contents() 817 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 830 rel->address += input_section->output_offset; in alpha_ecoff_get_relocated_section_contents() 833 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 845 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() 881 r = bfd_perform_relocation (input_bfd, rel, data, input_section, in alpha_ecoff_get_relocated_section_contents() [all …]
|
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() 347 asection * input_section, in coff_mcore_relocate_section() argument 377 relend = rel + input_section->reloc_count; in coff_mcore_relocate_section() 393 loc = contents + rel->r_vaddr - input_section->vma; in coff_mcore_relocate_section() 409 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h, in coff_mcore_relocate_section() 457 (info, h->root.root.string, input_bfd, input_section, in coff_mcore_relocate_section() [all …]
|
D | coff-z80.c | 182 asection * input_section = link_order->u.indirect.section; in extra_case() local 189 input_section); in extra_case() 195 reloc->howto->name, reloc->addend, input_section->owner, in extra_case() 196 input_section, reloc->address))) in extra_case() 206 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 214 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 223 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 232 + bfd_coff_reloc16_get_value (reloc, link_info, input_section); in extra_case() 241 input_section); in extra_case() 243 + input_section->output_offset in extra_case() [all …]
|
D | elf32-dlx.c | 57 asection *input_section, in _bfd_dlx_elf_hi16_reloc() argument 69 input_section, output_bfd, error_message); in _bfd_dlx_elf_hi16_reloc() 77 reloc_entry->address += input_section->output_offset; in _bfd_dlx_elf_hi16_reloc() 93 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in _bfd_dlx_elf_hi16_reloc() 117 asection *input_section, in elf32_dlx_relocate16() argument 131 input_section, output_bfd, error_message); in elf32_dlx_relocate16() 139 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 …]
|
D | coff-tic80.c | 368 asection *input_section ATTRIBUTE_UNUSED, in ppbase_reloc() 383 asection *input_section ATTRIBUTE_UNUSED, in glob15_reloc() 398 asection *input_section ATTRIBUTE_UNUSED, in glob16_reloc() 413 asection *input_section ATTRIBUTE_UNUSED, in local16_reloc() 481 asection *input_section, in coff_tic80_relocate_section() argument 491 relend = rel + input_section->reloc_count; in coff_tic80_relocate_section() 526 howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h, in coff_tic80_relocate_section() 568 (info, h->root.root.string, input_bfd, input_section, in coff_tic80_relocate_section() 569 rel->r_vaddr - input_section->vma, TRUE))) in coff_tic80_relocate_section() 574 addr = rel->r_vaddr - input_section->vma; in coff_tic80_relocate_section() [all …]
|
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() 388 asection *input_section, in fr30_final_link_relocate() argument 423 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 424 input_section->output_offset); in fr30_final_link_relocate() 440 srel -= (input_section->output_section->vma + in fr30_final_link_relocate() 441 input_section->output_offset); in fr30_final_link_relocate() 454 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in fr30_final_link_relocate() [all …]
|
D | cpu-ns32k.c | 146 asection * input_section, in do_ns32k_reloc() argument 164 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 177 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in do_ns32k_reloc() 235 input_section->output_section->vma + input_section->output_offset; in do_ns32k_reloc() 249 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 260 reloc_entry->address += input_section->output_offset; in do_ns32k_reloc() 744 asection *input_section, in _bfd_ns32k_reloc_disp() argument 748 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_disp() 759 asection *input_section, in _bfd_ns32k_reloc_imm() argument 763 return do_ns32k_reloc (abfd, reloc_entry, symbol, data, input_section, in _bfd_ns32k_reloc_imm() [all …]
|
D | bout.c | 491 asection *input_section) in get_value() argument 508 h = bfd_wrapped_link_hash_lookup (input_section->owner, link_info, in get_value() 522 input_section->owner, input_section, reloc->address, in get_value() 545 asection *input_section) in calljx_callback() argument 552 value = get_value (reloc_entry, link_info, input_section); in calljx_callback() 584 asection *input_section, in callj_callback() argument 592 value = get_value (reloc_entry, link_info, input_section); in callj_callback() 612 - output_addr (input_section)) in callj_callback() 622 BFD_ASSERT (symbol->symbol.section == input_section); in callj_callback() 629 - output_addr (input_section)) in callj_callback() [all …]
|
D | elf32-nios2.c | 1206 nios2_stub_name (const asection *input_section, in nios2_stub_name() argument 1223 input_section->id & 0xffffffff, in nios2_stub_name() 1236 input_section->id & 0xffffffff, in nios2_stub_name() 1249 nios2_get_stub_entry (const asection *input_section, in nios2_get_stub_entry() argument 1266 id_sec = htab->stub_group[input_section->id].first_sec; in nios2_get_stub_entry() 1268 id_sec = htab->stub_group[input_section->id].last_sec; in nios2_get_stub_entry() 2207 asection *input_section, in nios2_elf32_do_hi16_relocate() argument 2214 return _bfd_final_link_relocate (howto, abfd, input_section, in nios2_elf32_do_hi16_relocate() 2220 asection *input_section, in nios2_elf32_do_lo16_relocate() argument 2227 return _bfd_final_link_relocate (howto, abfd, input_section, in nios2_elf32_do_lo16_relocate() [all …]
|
D | elf32-d30v.c | 36 asection *input_section, in bfd_elf_d30v_reloc() argument 54 reloc_entry->address += input_section->output_offset; in bfd_elf_d30v_reloc() 59 input_section, output_bfd, error_message); in bfd_elf_d30v_reloc() 70 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in bfd_elf_d30v_reloc() 95 tmp_addr = input_section->output_section->vma in bfd_elf_d30v_reloc() 96 + input_section->output_offset in bfd_elf_d30v_reloc() 145 asection *input_section, in bfd_elf_d30v_reloc_21() argument 162 reloc_entry->address += input_section->output_offset; in bfd_elf_d30v_reloc_21() 167 input_section, output_bfd, error_message); in bfd_elf_d30v_reloc_21() 178 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in bfd_elf_d30v_reloc_21() [all …]
|
D | coff-arm.c | 97 asection *input_section ATTRIBUTE_UNUSED, in coff_arm_reloc() 575 asection *input_section ATTRIBUTE_UNUSED, in aoutarm_fix_pcrel_26_done() 590 asection *input_section, in aoutarm_fix_pcrel_26() argument 606 if (symbol->section->name != input_section->name in aoutarm_fix_pcrel_26() 616 relocation -= input_section->output_section->vma; in aoutarm_fix_pcrel_26() 617 relocation -= input_section->output_offset; in aoutarm_fix_pcrel_26() 648 asection *input_section, in coff_thumb_pcrel_common() argument 694 if (symbol->section->name != input_section->name in coff_thumb_pcrel_common() 721 relocation -= input_section->output_section->vma; in coff_thumb_pcrel_common() 722 relocation -= input_section->output_offset; in coff_thumb_pcrel_common() [all …]
|
D | elf64-mmix.c | 1275 asection *input_section, in mmix_elf_reloc() argument 1286 input_section, output_bfd, error_message); in mmix_elf_reloc() 1299 if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) in mmix_elf_reloc() 1331 reloc_entry->address += input_section->output_offset; in mmix_elf_reloc() 1335 return mmix_final_link_relocate (reloc_entry->howto, input_section, in mmix_elf_reloc() 1350 asection *input_section, in mmix_elf_relocate_section() argument 1363 size = input_section->rawsize ? input_section->rawsize : input_section->size; in mmix_elf_relocate_section() 1366 relend = relocs + input_section->reloc_count; in mmix_elf_relocate_section() 1369 if (input_section->rawsize != 0 in mmix_elf_relocate_section() 1370 && input_section->size > input_section->rawsize) in mmix_elf_relocate_section() [all …]
|
D | coff-i960.c | 95 asection *input_section, in optcall_callback() argument 108 reloc_entry->address += input_section->output_offset; in optcall_callback() 183 asection *input_section ATTRIBUTE_UNUSED, in coff_i960_relocate() 368 asection *input_section, in coff_i960_relocate_section() argument 378 relend = rel + input_section->reloc_count; in coff_i960_relocate_section() 453 (info, h->root.root.string, input_bfd, input_section, in coff_i960_relocate_section() 454 rel->r_vaddr - input_section->vma, TRUE))) in coff_i960_relocate_section() 479 input_bfd, input_section, in coff_i960_relocate_section() 480 rel->r_vaddr - input_section->vma))) in coff_i960_relocate_section() 512 + (rel->r_vaddr - input_section->vma))); in coff_i960_relocate_section() [all …]
|
D | elf32-moxie.c | 144 asection *input_section, in moxie_final_link_relocate() argument 154 r = _bfd_final_link_relocate (howto, input_bfd, input_section, in moxie_final_link_relocate() 196 asection *input_section, in moxie_elf_relocate_section() argument 209 relend = relocs + input_section->reloc_count; in moxie_elf_relocate_section() 244 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, in moxie_elf_relocate_section() 253 RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, in moxie_elf_relocate_section() 259 r = moxie_final_link_relocate (howto, input_bfd, input_section, in moxie_elf_relocate_section() 271 (bfd_vma) 0, input_bfd, input_section, rel->r_offset); in moxie_elf_relocate_section() 276 (info, name, input_bfd, input_section, rel->r_offset, in moxie_elf_relocate_section() 299 (info, msg, name, input_bfd, input_section, rel->r_offset); in moxie_elf_relocate_section()
|
D | elf-m10200.c | 233 asection *input_section, in mn10200_elf_final_link_relocate() argument 286 value -= (input_section->output_section->vma in mn10200_elf_final_link_relocate() 287 + input_section->output_offset); in mn10200_elf_final_link_relocate() 298 value -= (input_section->output_section->vma in mn10200_elf_final_link_relocate() 299 + input_section->output_offset); in mn10200_elf_final_link_relocate() 310 value -= (input_section->output_section->vma in mn10200_elf_final_link_relocate() 311 + input_section->output_offset); in mn10200_elf_final_link_relocate() 333 asection *input_section, in mn10200_elf_relocate_section() argument 347 relend = relocs + input_section->reloc_count; in mn10200_elf_relocate_section() 376 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, in mn10200_elf_relocate_section() [all …]
|
D | elf32-crx.c | 435 asection *input_section, bfd_byte *contents, in crx_elf_final_link_relocate() argument 488 Rvalue -= (input_section->output_section->vma in crx_elf_final_link_relocate() 489 + input_section->output_offset); in crx_elf_final_link_relocate() 727 asection *input_section = link_order->u.indirect.section; in elf32_crx_get_relocated_section_contents() local 728 bfd *input_bfd = input_section->owner; in elf32_crx_get_relocated_section_contents() 736 || elf_section_data (input_section)->this_hdr.contents == NULL) in elf32_crx_get_relocated_section_contents() 744 memcpy (data, elf_section_data (input_section)->this_hdr.contents, in elf32_crx_get_relocated_section_contents() 745 (size_t) input_section->size); in elf32_crx_get_relocated_section_contents() 747 if ((input_section->flags & SEC_RELOC) != 0 in elf32_crx_get_relocated_section_contents() 748 && input_section->reloc_count > 0) in elf32_crx_get_relocated_section_contents() [all …]
|
D | elf32-msp430.c | 679 asection * input_section, in msp430_final_link_relocate() argument 688 struct bfd_elf_section_data * esd = elf_section_data (input_section); in msp430_final_link_relocate() 708 BFD_ASSERT (sym_diff_section == input_section); in msp430_final_link_relocate() 722 && strcmp (input_section->name, ".debug_loc") == 0) in msp430_final_link_relocate() 760 sym_diff_section = input_section; in msp430_final_link_relocate() 783 srel -= (input_section->output_section->vma + in msp430_final_link_relocate() 784 input_section->output_offset); in msp430_final_link_relocate() 802 NULL, input_bfd, input_section, relocation); in msp430_final_link_relocate() 829 srel -= (input_section->output_section->vma + in msp430_final_link_relocate() 830 input_section->output_offset); in msp430_final_link_relocate() [all …]
|