/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | elf32-rx.c | 531 bfd_vma relocation; in rx_elf_relocate_section() local 544 relocation = 0; in rx_elf_relocate_section() 553 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, & sec, rel); in rx_elf_relocate_section() 565 sec, relocation, unresolved_reloc, in rx_elf_relocate_section() 644 relocation = (h->root.u.def.value in rx_elf_relocate_section() 671 relocation = 0; in rx_elf_relocate_section() 676 relocation -= (input_section->output_section->vma in rx_elf_relocate_section() 681 relocation ++; in rx_elf_relocate_section() 684 relocation += rel->r_addend; in rx_elf_relocate_section() 690 if (a > (long) relocation || (long) relocation > b) \ in rx_elf_relocate_section() [all …]
|
H A D | cpu-ns32k.c | 157 bfd_vma relocation; in do_ns32k_reloc() local 189 relocation = 0; in do_ns32k_reloc() 191 relocation = symbol->value; in do_ns32k_reloc() 201 relocation += output_base + symbol->section->output_offset; in do_ns32k_reloc() 204 relocation += reloc_entry->addend; in do_ns32k_reloc() 238 relocation -= in do_ns32k_reloc() 242 relocation -= reloc_entry->address; in do_ns32k_reloc() 252 reloc_entry->addend = relocation; in do_ns32k_reloc() 343 relocation -= reloc_entry->addend; in do_ns32k_reloc() 348 reloc_entry->addend = relocation; in do_ns32k_reloc() [all …]
|
H A D | elf32-d30v.c | 40 bfd_signed_vma relocation; in bfd_elf_d30v_reloc() local 78 relocation = 0; in bfd_elf_d30v_reloc() 80 relocation = symbol->value; in bfd_elf_d30v_reloc() 86 relocation += output_base + symbol->section->output_offset; in bfd_elf_d30v_reloc() 89 relocation += reloc_entry->addend; in bfd_elf_d30v_reloc() 98 relocation -= tmp_addr; in bfd_elf_d30v_reloc() 111 relocation += num; in bfd_elf_d30v_reloc() 118 if (relocation > MAX32 || relocation < MIN32) in bfd_elf_d30v_reloc() 120 relocation = (relocation + tmp_addr) & 0xffffffff; in bfd_elf_d30v_reloc() 125 in1 |= (relocation >> 26) & 0x3F; /* Top 6 bits. */ in bfd_elf_d30v_reloc() [all …]
|
H A D | elf32-rl78.c | 398 bfd_vma relocation = 0; in rl78_compute_complex_reloc() local 410 relocation = rl78_stack_pop (&status); in rl78_compute_complex_reloc() 411 relocation -= input_section->output_section->vma + input_section->output_offset; in rl78_compute_complex_reloc() 423 relocation = rl78_stack_pop (&status); in rl78_compute_complex_reloc() 428 relocation = rl78_stack_pop (&status) >> 2; in rl78_compute_complex_reloc() 433 relocation = rl78_stack_pop (&status) >> 1; in rl78_compute_complex_reloc() 559 return relocation; in rl78_compute_complex_reloc() 566 check_overflow (reloc_howto_type *howto, bfd_vma relocation) in check_overflow() argument 574 if ((bfd_signed_vma) relocation < -(1LL << (howto->bitsize - 1)) in check_overflow() 575 || (bfd_signed_vma) relocation >= 1LL << howto->bitsize) in check_overflow() [all …]
|
H A D | reloc.c | 449 bfd_vma relocation) in bfd_check_overflow() argument 464 a = (relocation & addrmask) >> rightshift; in bfd_check_overflow() 613 bfd_vma relocation) in apply_reloc() argument 618 relocation = -relocation; in apply_reloc() 621 | (((val & howto->src_mask) + relocation) & howto->dst_mask)); in apply_reloc() 665 bfd_vma relocation; in bfd_perform_relocation() local 722 relocation = 0; in bfd_perform_relocation() 724 relocation = symbol->value; in bfd_perform_relocation() 742 relocation += output_base; in bfd_perform_relocation() 745 relocation += reloc_entry->addend; in bfd_perform_relocation() [all …]
|
H A D | elf64-bpf.c | 201 bfd_vma relocation; in bpf_elf_relocate_section() local 222 relocation = BASEADDR (sec) + sym->st_value; in bpf_elf_relocate_section() 236 h, sec, relocation, in bpf_elf_relocate_section() 256 relocation = ((bfd_signed_vma) relocation in bpf_elf_relocate_section() 258 relocation = (bfd_signed_vma) relocation / 8; in bpf_elf_relocate_section() 267 relocation += addend; in bpf_elf_relocate_section() 270 bfd_put (howto->bitsize, input_bfd, relocation, in bpf_elf_relocate_section() 282 relocation += addend; in bpf_elf_relocate_section() 283 bfd_put (howto->bitsize, input_bfd, relocation, where); in bpf_elf_relocate_section() 304 relocation += addend; in bpf_elf_relocate_section() [all …]
|
H A D | elf32-fr30.c | 243 bfd_vma relocation; in fr30_elf_i20_reloc() local 260 relocation = in fr30_elf_i20_reloc() 266 if (relocation > (((bfd_vma) 1 << 20) - 1)) in fr30_elf_i20_reloc() 270 x = (x & 0xff0f0000) | (relocation & 0x0000ffff) | ((relocation & 0x000f0000) << 4); in fr30_elf_i20_reloc() 287 bfd_vma relocation; in fr30_elf_i32_reloc() local 303 relocation = in fr30_elf_i32_reloc() 309 bfd_put_32 (abfd, relocation, (char *) data + reloc_entry->address + 2); in fr30_elf_i32_reloc() 399 bfd_vma relocation) in fr30_final_link_relocate() argument 409 relocation += rel->r_addend; in fr30_final_link_relocate() 411 if (relocation > ((1 << 20) - 1)) in fr30_final_link_relocate() [all …]
|
H A D | elf32-epiphany.c | 391 bfd_vma relocation) in epiphany_final_link_relocate() argument 397 relocation += rel->r_addend; in epiphany_final_link_relocate() 398 relocation >>= 16; in epiphany_final_link_relocate() 402 relocation += rel->r_addend; in epiphany_final_link_relocate() 404 relocation = ((relocation & 0xff00L) << 12) in epiphany_final_link_relocate() 405 | ((relocation & 0x00ffL) << 5); in epiphany_final_link_relocate() 410 return _bfd_relocate_contents (howto, input_bfd, relocation, in epiphany_final_link_relocate() 414 relocation += rel->r_addend; in epiphany_final_link_relocate() 416 if ((int)relocation > 1023 || (int)relocation < -1024) in epiphany_final_link_relocate() 421 relocation += rel->r_addend; in epiphany_final_link_relocate() [all …]
|
H A D | elf32-visium.c | 312 bfd_vma relocation; in visium_elf_howto_parity_reloc() local 336 relocation = 0; in visium_elf_howto_parity_reloc() 338 relocation = symbol->value; in visium_elf_howto_parity_reloc() 343 relocation += symbol->section->output_section->vma; in visium_elf_howto_parity_reloc() 344 relocation += symbol->section->output_offset; in visium_elf_howto_parity_reloc() 347 relocation += reloc_entry->addend; in visium_elf_howto_parity_reloc() 353 relocation -= input_section->output_section->vma; in visium_elf_howto_parity_reloc() 354 relocation -= input_section->output_offset; in visium_elf_howto_parity_reloc() 355 relocation -= reloc_entry->address; in visium_elf_howto_parity_reloc() 362 && ((bfd_signed_vma) relocation < -0x20000 in visium_elf_howto_parity_reloc() [all …]
|
H A D | coff-arm.c | 604 bfd_vma relocation; in aoutarm_fix_pcrel_26() local 620 relocation = (target & 0x00ffffff) << 2; in aoutarm_fix_pcrel_26() 621 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ in aoutarm_fix_pcrel_26() 622 relocation += symbol->value; in aoutarm_fix_pcrel_26() 623 relocation += symbol->section->output_section->vma; in aoutarm_fix_pcrel_26() 624 relocation += symbol->section->output_offset; in aoutarm_fix_pcrel_26() 625 relocation += reloc_entry->addend; 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() 628 relocation -= addr; in aoutarm_fix_pcrel_26() [all …]
|
H A D | coff-aarch64.c | 62 bfd_vma relocation = reloc_entry->addend; in coff_aarch64_rel21_reloc() local 72 relocation += (symbol->value in coff_aarch64_rel21_reloc() 77 relocation += addend; in coff_aarch64_rel21_reloc() 78 relocation -= (reloc_entry->address in coff_aarch64_rel21_reloc() 81 relocation = (bfd_signed_vma) relocation >> reloc_entry->howto->rightshift; in coff_aarch64_rel21_reloc() 83 if (relocation + 0x100000 > 0x1fffff) in coff_aarch64_rel21_reloc() 87 op |= (relocation & 0x1ffffc) << 3; in coff_aarch64_rel21_reloc() 88 op |= (relocation & 0x3) << 29; in coff_aarch64_rel21_reloc() 112 bfd_vma relocation = reloc_entry->addend & 0xfff; in coff_aarch64_po12l_reloc() local 135 relocation += (symbol->value in coff_aarch64_po12l_reloc() [all …]
|
H A D | coff-mips.c | 436 bfd_vma relocation; in mips_refhi_reloc() local 455 relocation = 0; in mips_refhi_reloc() 457 relocation = symbol->value; in mips_refhi_reloc() 459 relocation += symbol->section->output_section->vma; in mips_refhi_reloc() 460 relocation += symbol->section->output_offset; in mips_refhi_reloc() 461 relocation += reloc_entry->addend; in mips_refhi_reloc() 471 n->addend = relocation; in mips_refhi_reloc() 563 bfd_vma relocation; in mips_gprel_reloc() local 645 relocation = 0; in mips_gprel_reloc() 647 relocation = symbol->value; in mips_gprel_reloc() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | elf32-rx.c | 531 bfd_vma relocation; in rx_elf_relocate_section() local 544 relocation = 0; in rx_elf_relocate_section() 553 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, & sec, rel); in rx_elf_relocate_section() 565 sec, relocation, unresolved_reloc, in rx_elf_relocate_section() 644 relocation = (h->root.u.def.value in rx_elf_relocate_section() 671 relocation = 0; in rx_elf_relocate_section() 676 relocation -= (input_section->output_section->vma in rx_elf_relocate_section() 681 relocation ++; in rx_elf_relocate_section() 684 relocation += rel->r_addend; in rx_elf_relocate_section() 690 if (a > (long) relocation || (long) relocation > b) \ in rx_elf_relocate_section() [all …]
|
H A D | cpu-ns32k.c | 157 bfd_vma relocation; in do_ns32k_reloc() local 189 relocation = 0; in do_ns32k_reloc() 191 relocation = symbol->value; in do_ns32k_reloc() 201 relocation += output_base + symbol->section->output_offset; in do_ns32k_reloc() 204 relocation += reloc_entry->addend; in do_ns32k_reloc() 238 relocation -= in do_ns32k_reloc() 242 relocation -= reloc_entry->address; in do_ns32k_reloc() 252 reloc_entry->addend = relocation; in do_ns32k_reloc() 343 relocation -= reloc_entry->addend; in do_ns32k_reloc() 348 reloc_entry->addend = relocation; in do_ns32k_reloc() [all …]
|
H A D | elf32-d30v.c | 40 bfd_signed_vma relocation; in bfd_elf_d30v_reloc() local 78 relocation = 0; in bfd_elf_d30v_reloc() 80 relocation = symbol->value; in bfd_elf_d30v_reloc() 86 relocation += output_base + symbol->section->output_offset; in bfd_elf_d30v_reloc() 89 relocation += reloc_entry->addend; in bfd_elf_d30v_reloc() 98 relocation -= tmp_addr; in bfd_elf_d30v_reloc() 111 relocation += num; in bfd_elf_d30v_reloc() 118 if (relocation > MAX32 || relocation < MIN32) in bfd_elf_d30v_reloc() 120 relocation = (relocation + tmp_addr) & 0xffffffff; in bfd_elf_d30v_reloc() 125 in1 |= (relocation >> 26) & 0x3F; /* Top 6 bits. */ in bfd_elf_d30v_reloc() [all …]
|
H A D | elf32-rl78.c | 398 bfd_vma relocation = 0; in rl78_compute_complex_reloc() local 410 relocation = rl78_stack_pop (&stat); in rl78_compute_complex_reloc() 411 relocation -= input_section->output_section->vma + input_section->output_offset; in rl78_compute_complex_reloc() 423 relocation = rl78_stack_pop (&stat); in rl78_compute_complex_reloc() 428 relocation = rl78_stack_pop (&stat) >> 2; in rl78_compute_complex_reloc() 433 relocation = rl78_stack_pop (&stat) >> 1; in rl78_compute_complex_reloc() 559 return relocation; in rl78_compute_complex_reloc() 566 check_overflow (reloc_howto_type *howto, bfd_vma relocation) in check_overflow() argument 574 if ((bfd_signed_vma) relocation < -(1LL << (howto->bitsize - 1)) in check_overflow() 575 || (bfd_signed_vma) relocation >= 1LL << howto->bitsize) in check_overflow() [all …]
|
H A D | reloc.c | 444 bfd_vma relocation) in bfd_check_overflow() argument 459 a = (relocation & addrmask) >> rightshift; in bfd_check_overflow() 608 bfd_vma relocation) in apply_reloc() argument 613 relocation = -relocation; in apply_reloc() 616 | (((val & howto->src_mask) + relocation) & howto->dst_mask)); in apply_reloc() 660 bfd_vma relocation; in bfd_perform_relocation() local 717 relocation = 0; in bfd_perform_relocation() 719 relocation = symbol->value; in bfd_perform_relocation() 737 relocation += output_base; in bfd_perform_relocation() 740 relocation += reloc_entry->addend; in bfd_perform_relocation() [all …]
|
H A D | elf64-bpf.c | 393 bfd_vma relocation; in bpf_elf_relocate_section() local 412 relocation = BASEADDR (sec) + sym->st_value; in bpf_elf_relocate_section() 426 h, sec, relocation, in bpf_elf_relocate_section() 447 relocation = ((bfd_signed_vma) relocation in bpf_elf_relocate_section() 449 relocation = (bfd_signed_vma) relocation / 8; in bpf_elf_relocate_section() 458 relocation += addend; in bpf_elf_relocate_section() 461 bfd_put (howto->bitsize, input_bfd, relocation, in bpf_elf_relocate_section() 474 relocation += addend; in bpf_elf_relocate_section() 475 bfd_put (howto->bitsize, input_bfd, relocation, where); in bpf_elf_relocate_section() 484 relocation += addend; in bpf_elf_relocate_section() [all …]
|
H A D | elf32-epiphany.c | 390 bfd_vma relocation) in epiphany_final_link_relocate() argument 396 relocation += rel->r_addend; in epiphany_final_link_relocate() 397 relocation >>= 16; in epiphany_final_link_relocate() 401 relocation += rel->r_addend; in epiphany_final_link_relocate() 403 relocation = ((relocation & 0xff00L) << 12) in epiphany_final_link_relocate() 404 | ((relocation & 0x00ffL) << 5); in epiphany_final_link_relocate() 409 return _bfd_relocate_contents (howto, input_bfd, relocation, in epiphany_final_link_relocate() 413 relocation += rel->r_addend; in epiphany_final_link_relocate() 415 if ((int)relocation > 1023 || (int)relocation < -1024) in epiphany_final_link_relocate() 420 relocation += rel->r_addend; in epiphany_final_link_relocate() [all …]
|
H A D | elf32-fr30.c | 243 bfd_vma relocation; in fr30_elf_i20_reloc() local 260 relocation = in fr30_elf_i20_reloc() 266 if (relocation > (((bfd_vma) 1 << 20) - 1)) in fr30_elf_i20_reloc() 270 x = (x & 0xff0f0000) | (relocation & 0x0000ffff) | ((relocation & 0x000f0000) << 4); in fr30_elf_i20_reloc() 287 bfd_vma relocation; in fr30_elf_i32_reloc() local 303 relocation = in fr30_elf_i32_reloc() 309 bfd_put_32 (abfd, relocation, (char *) data + reloc_entry->address + 2); in fr30_elf_i32_reloc() 399 bfd_vma relocation) in fr30_final_link_relocate() argument 409 relocation += rel->r_addend; in fr30_final_link_relocate() 411 if (relocation > ((1 << 20) - 1)) in fr30_final_link_relocate() [all …]
|
H A D | elf32-visium.c | 312 bfd_vma relocation; in visium_elf_howto_parity_reloc() local 336 relocation = 0; in visium_elf_howto_parity_reloc() 338 relocation = symbol->value; in visium_elf_howto_parity_reloc() 343 relocation += symbol->section->output_section->vma; in visium_elf_howto_parity_reloc() 344 relocation += symbol->section->output_offset; in visium_elf_howto_parity_reloc() 347 relocation += reloc_entry->addend; in visium_elf_howto_parity_reloc() 353 relocation -= input_section->output_section->vma; in visium_elf_howto_parity_reloc() 354 relocation -= input_section->output_offset; in visium_elf_howto_parity_reloc() 355 relocation -= reloc_entry->address; in visium_elf_howto_parity_reloc() 362 && ((bfd_signed_vma) relocation < -0x20000 in visium_elf_howto_parity_reloc() [all …]
|
H A D | coff-arm.c | 604 bfd_vma relocation; in aoutarm_fix_pcrel_26() local 620 relocation = (target & 0x00ffffff) << 2; in aoutarm_fix_pcrel_26() 621 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */ in aoutarm_fix_pcrel_26() 622 relocation += symbol->value; in aoutarm_fix_pcrel_26() 623 relocation += symbol->section->output_section->vma; in aoutarm_fix_pcrel_26() 624 relocation += symbol->section->output_offset; in aoutarm_fix_pcrel_26() 625 relocation += reloc_entry->addend; 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() 628 relocation -= addr; in aoutarm_fix_pcrel_26() [all …]
|
H A D | coff-mips.c | 447 bfd_vma relocation; in mips_refhi_reloc() local 466 relocation = 0; in mips_refhi_reloc() 468 relocation = symbol->value; in mips_refhi_reloc() 470 relocation += symbol->section->output_section->vma; in mips_refhi_reloc() 471 relocation += symbol->section->output_offset; in mips_refhi_reloc() 472 relocation += reloc_entry->addend; in mips_refhi_reloc() 482 n->addend = relocation; in mips_refhi_reloc() 574 bfd_vma relocation; in mips_gprel_reloc() local 656 relocation = 0; in mips_gprel_reloc() 658 relocation = symbol->value; in mips_gprel_reloc() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/ELFRelocs/ |
H A D | Lanai.def | 6 // No relocation 8 // 21-bit symbol relocation 10 // 21-bit symbol relocation with last two bits masked to 0 14 // General 32-bit relocation 16 // Upper 16-bits of a symbolic relocation 18 // Lower 16-bits of a symbolic relocation
|
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/python/llvm/tests/ |
H A D | test_object.py | 63 for relocation in section.get_relocations(): 64 assert isinstance(relocation, Relocation) 65 assert isinstance(relocation.address, Integral) 66 assert isinstance(relocation.offset, Integral) 67 assert isinstance(relocation.type_number, Integral) 68 assert isinstance(relocation.type_name, str) 69 assert isinstance(relocation.value_string, str)
|