Lines Matching defs:relocation

559 /* Return TRUE if this relocation should
631 bfd_vma relocation;
641 /* If the sections are different, and we are doing a partial relocation,
647 relocation = (target & 0x00ffffff) << 2;
648 relocation = (relocation ^ 0x02000000) - 0x02000000; /* Sign extend. */
649 relocation += symbol->value;
650 relocation += symbol->section->output_section->vma;
651 relocation += symbol->section->output_offset;
652 relocation += reloc_entry->addend;
653 relocation -= input_section->output_section->vma;
654 relocation -= input_section->output_offset;
655 relocation -= addr;
657 if (relocation & 3)
661 if (relocation & 0x02000000)
663 if ((relocation & ~ (bfd_vma) 0x03ffffff) != ~ (bfd_vma) 0x03ffffff)
666 else if (relocation & ~(bfd_vma) 0x03ffffff)
670 target |= (relocation >> 2) & 0x00ffffff;
674 Strictly this is only necessary if we are doing a partial relocation. */
692 bfd_vma relocation = 0;
732 /* If the sections are different, and we are doing a partial relocation,
742 relocation = ((target & dstmsk) << 1);
747 relocation = ((target & 0x7ff) << 1) | ((target & 0x07ff0000) >> 4);
749 relocation = ((target & 0x7ff) << 12) | ((target & 0x07ff0000) >> 15);
756 relocation = (relocation ^ signbit) - signbit; /* Sign extend. */
757 relocation += symbol->value;
758 relocation += symbol->section->output_section->vma;
759 relocation += symbol->section->output_offset;
760 relocation += reloc_entry->addend;
761 relocation -= input_section->output_section->vma;
762 relocation -= input_section->output_offset;
763 relocation -= addr;
765 if (relocation & 1)
769 if (relocation & signbit)
771 if ((relocation & ~offmsk) != ~offmsk)
774 else if (relocation & ~offmsk)
782 target |= (relocation >> 1);
787 target |= (((relocation & 0xfff) >> 1)
788 | ((relocation << 4) & 0x07ff0000));
790 target |= (((relocation & 0xffe) << 15)
791 | ((relocation >> 12) & 0x7ff));
801 Strictly this is only necessary if we are doing a partial relocation. */
1181 Thumb BRANCH23 relocation. The alternative would be to split the
1183 bit simpler simply providing our own relocation driver. */
1314 within the same section, the relocation should have already
1587 /* If the relocation type and destination symbol does not
1633 routines do to perform a relocation, with special
1645 bfd_vma relocation = val + addend;
1661 relocation -= (input_section->output_section->vma
1665 relocation -= address;
1667 /* No need to negate the relocation with BRANCH23. */
1672 check = relocation >> howto->rightshift;
1676 if ((bfd_signed_vma) relocation >= 0)
1706 relocation += signed_add;
1715 /* Put the relocation into the correct bits.
1716 For a BLX instruction, make sure that the relocation is rounded up
1722 if ((x & 0x1800) == 0x0800 && (relocation & 0x02))
1723 relocation += 2;
1724 relocation = (((relocation & 0xffe) >> 1) | ((relocation << 4) & 0x07ff0000));
1728 if ((x & 0x18000000) == 0x08000000 && (relocation & 0x02))
1729 relocation += 2;
1730 relocation = (((relocation & 0xffe) << 15) | ((relocation >> 12) & 0x7ff));
1733 /* Add the relocation to the correct bits of X. */
1734 x = ((x & ~howto->dst_mask) | relocation);
2136 /* If the relocation is not against a symbol it cannot concern us. */
2150 /* If the relocation is against a static symbol it must be within
2151 the current section and so cannot be a cross ARM/Thumb relocation. */