• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cxxfilt-11/cxxfilt/bfd/

Lines Matching refs:srel

763 avr_get_stub_addr (bfd_vma srel,
772 if (htab->amt_destination_addr[index] == srel)
793 bfd_signed_vma srel;
807 srel = (bfd_signed_vma) relocation;
808 srel += rel->r_addend;
809 srel -= rel->r_offset;
810 srel -= 2; /* Branch instructions add 2 to the PC... */
811 srel -= (input_section->output_section->vma +
814 if (srel & 1)
816 if (srel > ((1 << 7) - 1) || (srel < - (1 << 7)))
819 x = (x & 0xfc07) | (((srel >> 1) << 3) & 0x3f8);
825 srel = (bfd_signed_vma) relocation;
826 srel += rel->r_addend;
827 srel -= rel->r_offset;
828 srel -= 2; /* Branch instructions add 2 to the PC... */
829 srel -= (input_section->output_section->vma +
832 if (srel & 1)
835 srel = avr_relative_distance_considering_wrap_around (srel);
838 srel >>= 1;
841 if (srel < -2048 || srel > 2047)
858 x = (x & 0xf000) | (srel & 0xfff);
864 srel = (bfd_signed_vma) relocation + rel->r_addend;
866 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
872 srel = (bfd_signed_vma) relocation + rel->r_addend;
873 if (((srel > 0) && (srel & 0xffff) > 255)
874 || ((srel < 0) && ((-srel) & 0xffff) > 128))
879 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
885 srel = (bfd_signed_vma) relocation + rel->r_addend;
886 if (((srel & 0xffff) > 63) || (srel < 0))
890 x = (x & 0xd3f8) | ((srel & 7) | ((srel & (3 << 3)) << 7)
891 | ((srel & (1 << 5)) << 8));
897 srel = (bfd_signed_vma) relocation + rel->r_addend;
898 if (((srel & 0xffff) > 63) || (srel < 0))
902 x = (x & 0xff30) | (srel & 0xf) | ((srel & 0x30) << 2);
908 srel = (bfd_signed_vma) relocation + rel->r_addend;
909 srel = (srel >> 8) & 0xff;
911 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
917 srel = (bfd_signed_vma) relocation + rel->r_addend;
918 srel = (srel >> 16) & 0xff;
920 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
926 srel = (bfd_signed_vma) relocation + rel->r_addend;
927 srel = (srel >> 24) & 0xff;
929 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
935 srel = (bfd_signed_vma) relocation + rel->r_addend;
936 srel = -srel;
938 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
944 srel = (bfd_signed_vma) relocation + rel->r_addend;
945 srel = -srel;
946 srel = (srel >> 8) & 0xff;
948 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
954 srel = (bfd_signed_vma) relocation + rel->r_addend;
955 srel = -srel;
956 srel = (srel >> 16) & 0xff;
958 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
964 srel = (bfd_signed_vma) relocation + rel->r_addend;
965 srel = -srel;
966 srel = (srel >> 24) & 0xff;
968 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
977 srel = (bfd_signed_vma) relocation + rel->r_addend;
980 && avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
982 bfd_vma old_srel = srel;
985 srel = avr_get_stub_addr (srel, htab);
989 (unsigned int) srel,
993 if (avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
997 if (srel & 1)
999 srel = srel >> 1;
1001 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1010 srel = (bfd_signed_vma) relocation + rel->r_addend;
1013 && avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
1015 bfd_vma old_srel = srel;
1018 srel = avr_get_stub_addr (srel, htab);
1022 (unsigned int) srel,
1026 if (avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
1030 if (srel & 1)
1032 srel = srel >> 1;
1033 srel = (srel >> 8) & 0xff;
1035 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1041 srel = (bfd_signed_vma) relocation + rel->r_addend;
1042 if (srel & 1)
1044 srel = srel >> 1;
1045 srel = (srel >> 16) & 0xff;
1047 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1053 srel = (bfd_signed_vma) relocation + rel->r_addend;
1054 srel = -srel;
1055 if (srel & 1)
1057 srel = srel >> 1;
1059 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1065 srel = (bfd_signed_vma) relocation + rel->r_addend;
1066 srel = -srel;
1067 if (srel & 1)
1069 srel = srel >> 1;
1070 srel = (srel >> 8) & 0xff;
1072 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1078 srel = (bfd_signed_vma) relocation + rel->r_addend;
1079 srel = -srel;
1080 if (srel & 1)
1082 srel = srel >> 1;
1083 srel = (srel >> 16) & 0xff;
1085 x = (x & 0xf0f0) | (srel & 0xf) | ((srel << 4) & 0xf00);
1091 srel = (bfd_signed_vma) relocation + rel->r_addend;
1092 if (srel & 1)
1094 srel = srel >> 1;
1096 x |= ((srel & 0x10000) | ((srel << 3) & 0x1f00000)) >> 16;
1098 bfd_put_16 (input_bfd, (bfd_vma) srel & 0xffff, contents+2);
1104 srel = (bfd_signed_vma) relocation + rel->r_addend;
1107 && avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
1109 bfd_vma old_srel = srel;
1112 srel = avr_get_stub_addr (srel,htab);
1116 (unsigned int) srel,
1120 if (avr_stub_is_required_for_16_bit_reloc (srel - base_addr))
1124 if (srel & 1)
1126 srel = srel >> 1;
1127 bfd_put_16 (input_bfd, (bfd_vma) srel &0x00ffff, contents);