Home | History | Annotate | Download | only in bfd

Lines Matching refs:srel

691   bfd_signed_vma srel;
766 srel = (bfd_signed_vma) relocation;
768 srel += bfd_get_16 (input_bfd, contents);
770 srel += rel->r_addend;
771 bfd_put_16 (input_bfd, srel & 0xffff, contents);
776 srel = (bfd_signed_vma) relocation;
778 srel += bfd_get_16 (input_bfd, contents) & 0x3ff;
780 srel += rel->r_addend;
781 srel -= rel->r_offset;
782 srel -= 2; /* Branch instructions add 2 to the PC... */
783 srel -= (input_section->output_section->vma +
785 if (srel & 1)
789 srel >>= 1;
792 if (srel < -512 || srel > 511)
810 x = (x & 0xfc00) | (srel & 0x3ff);
817 srel = (bfd_signed_vma) relocation;
823 srel += addend;
827 srel += rel->r_addend;
828 srel -= rel->r_offset;
829 srel -= (input_section->output_section->vma +
831 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 6);
833 x = (x & 0xfff0) | ((srel >> 16) & 0xf);
840 srel = (bfd_signed_vma) relocation;
846 srel += addend;
849 srel += rel->r_addend;
850 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
851 srel >>= 16;
853 x = (x & 0xf87f) | ((srel << 7) & 0x0780);
859 srel = (bfd_signed_vma) relocation;
861 srel += bfd_get_16 (input_bfd, contents);
863 srel += rel->r_addend;
864 srel -= rel->r_offset;
866 srel -= (input_section->output_section->vma +
868 if (srel & 1)
870 bfd_put_16 (input_bfd, srel & 0xffff, contents);
876 srel = (bfd_signed_vma) relocation;
882 srel += addend;
885 srel += rel->r_addend;
886 srel -= rel->r_offset;
887 srel -= (input_section->output_section->vma +
889 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
890 srel >>= 16;
892 x = (x & 0xfff0) | (srel & 0xf);
899 srel = (bfd_signed_vma) relocation;
905 srel += addend;;
908 srel += rel->r_addend;
909 srel -= rel->r_offset;
911 srel -= (input_section->output_section->vma +
913 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
914 srel >>= 16;
916 x = (x & 0xf87f) | ((srel << 7) & 0x0780);
922 srel = (bfd_signed_vma) relocation;
924 srel += bfd_get_8 (input_bfd, contents);
926 srel += rel->r_addend;
927 bfd_put_8 (input_bfd, srel & 0xff, contents);
932 srel = (bfd_signed_vma) relocation;
934 srel += bfd_get_16 (input_bfd, contents) & 0xf;
936 srel += rel->r_addend;
937 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
938 srel >>= 16;
940 x = (x & 0xfff0) | (srel & 0xf);
947 srel = (bfd_signed_vma) relocation;
953 srel += addend;
956 srel += rel->r_addend;
957 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 6);
958 srel >>= 16;
960 x = (x & 0xfff0) | (srel & 0xf);
967 srel = (bfd_signed_vma) relocation;
974 srel += addend;
977 srel += rel->r_addend;
978 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 2);
979 srel >>= 16;
981 x = (x & 0xf0ff) | ((srel << 8) & 0x0f00);
988 srel = (bfd_signed_vma) relocation;
994 srel += addend;
997 srel += rel->r_addend;
998 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 2);
999 srel >>= 16;
1001 x = (x & 0xfff0) | (srel & 0xf);
1007 srel = (bfd_signed_vma) relocation;
1009 srel += bfd_get_16 (input_bfd, contents);
1011 srel += rel->r_addend;
1012 x = srel;
1015 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1022 srel = (bfd_signed_vma) relocation;
1023 srel += rel->r_addend;
1024 bfd_put_16 (input_bfd, (srel >> 16) & 0xffff, contents);
1030 srel = (bfd_signed_vma) relocation;
1036 srel += addend;
1039 srel += rel->r_addend;
1040 srel -= rel->r_offset;
1041 srel -= (input_section->output_section->vma +
1043 bfd_put_16 (input_bfd, srel & 0xffff, contents + 2);
1044 srel >>= 16;
1046 x = (x & 0xfff0) | (srel & 0xf);
1052 srel = (bfd_signed_vma) relocation;
1054 srel += bfd_get_16 (input_bfd, contents);
1056 srel += rel->r_addend;
1057 srel -= rel->r_offset;
1058 srel -= (input_section->output_section->vma +
1060 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1065 srel = (bfd_signed_vma) relocation;
1067 srel += (bfd_get_32 (input_bfd, contents) & 0x7fffffff);
1069 srel += rel->r_addend;
1070 srel += rel->r_addend;
1072 x = (x & 0x80000000) | ((srel >> 31) & 0x7fffffff);
1086 srel = (bfd_signed_vma) relocation;
1087 srel += rel->r_addend;
1088 srel -= rel->r_offset;
1089 srel -= 2; /* Branch instructions add 2 to the PC... */
1090 srel -= (input_section->output_section->vma +
1093 if (srel & 1)
1097 srel >>= 1;
1100 if (srel < -512 || srel > 511)
1118 x = (x & 0xfc00) | (srel & 0x3ff);
1124 srel = (bfd_signed_vma) relocation;
1125 srel += rel->r_addend;
1126 srel -= rel->r_offset;
1127 srel -= 2; /* Branch instructions add 2 to the PC... */
1128 srel -= (input_section->output_section->vma +
1131 if (srel & 1)
1135 srel >>= 1;
1138 if (srel < -512 || srel > 511)
1142 x = (x & 0xfc00) | (srel & 0x3ff);
1146 srel += 1;
1147 x = (x & 0xfc00) | (srel & 0x3ff);
1154 srel = (bfd_signed_vma) relocation;
1155 srel += rel->r_addend;
1156 srel -= rel->r_offset;
1158 srel -= (input_section->output_section->vma +
1161 if (srel & 1)
1164 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1169 srel = (bfd_signed_vma) relocation;
1170 srel += rel->r_addend;
1171 srel -= rel->r_offset;
1173 srel -= (input_section->output_section->vma +
1176 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1181 srel = (bfd_signed_vma) relocation;
1182 srel += rel->r_addend;
1183 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1188 srel = (bfd_signed_vma) relocation;
1189 srel += rel->r_addend;
1191 if (srel & 1)
1194 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1199 srel = (bfd_signed_vma) relocation;
1200 srel += rel->r_addend;
1202 bfd_put_8 (input_bfd, srel & 0xff, contents);