Lines Matching refs:relocation

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()
630 if (relocation & 3) in aoutarm_fix_pcrel_26()
634 if (relocation & 0x02000000) in aoutarm_fix_pcrel_26()
636 if ((relocation & ~ (bfd_vma) 0x03ffffff) != ~ (bfd_vma) 0x03ffffff) in aoutarm_fix_pcrel_26()
639 else if (relocation & ~(bfd_vma) 0x03ffffff) in aoutarm_fix_pcrel_26()
643 target |= (relocation >> 2) & 0x00ffffff; in aoutarm_fix_pcrel_26()
663 bfd_vma relocation = 0; in coff_thumb_pcrel_common() local
712 relocation = ((target & dstmsk) << 1); in coff_thumb_pcrel_common()
717 relocation = ((target & 0x7ff) << 1) | ((target & 0x07ff0000) >> 4); in coff_thumb_pcrel_common()
719 relocation = ((target & 0x7ff) << 12) | ((target & 0x07ff0000) >> 15); in coff_thumb_pcrel_common()
726 relocation = (relocation ^ signbit) - signbit; /* Sign extend. */ in coff_thumb_pcrel_common()
727 relocation += symbol->value; in coff_thumb_pcrel_common()
728 relocation += symbol->section->output_section->vma; in coff_thumb_pcrel_common()
729 relocation += symbol->section->output_offset; in coff_thumb_pcrel_common()
730 relocation += reloc_entry->addend; in coff_thumb_pcrel_common()
731 relocation -= input_section->output_section->vma; in coff_thumb_pcrel_common()
732 relocation -= input_section->output_offset; in coff_thumb_pcrel_common()
733 relocation -= addr; in coff_thumb_pcrel_common()
735 if (relocation & 1) in coff_thumb_pcrel_common()
739 if (relocation & signbit) in coff_thumb_pcrel_common()
741 if ((relocation & ~offmsk) != ~offmsk) in coff_thumb_pcrel_common()
744 else if (relocation & ~offmsk) in coff_thumb_pcrel_common()
752 target |= (relocation >> 1); in coff_thumb_pcrel_common()
757 target |= (((relocation & 0xfff) >> 1) in coff_thumb_pcrel_common()
758 | ((relocation << 4) & 0x07ff0000)); in coff_thumb_pcrel_common()
760 target |= (((relocation & 0xffe) << 15) in coff_thumb_pcrel_common()
761 | ((relocation >> 12) & 0x7ff)); in coff_thumb_pcrel_common()
1609 bfd_vma relocation = val + addend; in coff_arm_relocate_section() local
1625 relocation -= (input_section->output_section->vma in coff_arm_relocate_section()
1629 relocation -= address; in coff_arm_relocate_section()
1636 check = relocation >> howto->rightshift; in coff_arm_relocate_section()
1640 if ((bfd_signed_vma) relocation >= 0) in coff_arm_relocate_section()
1670 relocation += signed_add; in coff_arm_relocate_section()
1686 if ((x & 0x1800) == 0x0800 && (relocation & 0x02)) in coff_arm_relocate_section()
1687 relocation += 2; in coff_arm_relocate_section()
1688 relocation = (((relocation & 0xffe) >> 1) | ((relocation << 4) & 0x07ff0000)); in coff_arm_relocate_section()
1692 if ((x & 0x18000000) == 0x08000000 && (relocation & 0x02)) in coff_arm_relocate_section()
1693 relocation += 2; in coff_arm_relocate_section()
1694 relocation = (((relocation & 0xffe) << 15) | ((relocation >> 12) & 0x7ff)); in coff_arm_relocate_section()
1698 x = ((x & ~howto->dst_mask) | relocation); in coff_arm_relocate_section()