Lines Matching defs:srel
816 bfd_signed_vma srel;
948 srel = (bfd_signed_vma) relocation;
950 srel += bfd_get_16 (input_bfd, contents);
952 srel += rel->r_addend;
953 bfd_put_16 (input_bfd, srel & 0xffff, contents);
958 srel = (bfd_signed_vma) relocation;
960 srel += bfd_get_16 (input_bfd, contents) & 0x3ff;
962 srel += rel->r_addend;
963 srel -= rel->r_offset;
964 srel -= 2; /* Branch instructions add 2 to the PC... */
965 srel -= (input_section->output_section->vma +
967 if (srel & 1)
971 srel >>= 1;
974 if (srel < -512 || srel > 511)
992 x = (x & 0xfc00) | (srel & 0x3ff);
999 srel = (bfd_signed_vma) relocation;
1005 srel += addend;
1009 srel += rel->r_addend;
1010 srel -= rel->r_offset;
1011 srel -= (input_section->output_section->vma +
1013 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 6);
1015 x = (x & 0xfff0) | ((srel >> 16) & 0xf);
1022 srel = (bfd_signed_vma) relocation;
1028 srel += addend;
1031 srel += rel->r_addend;
1032 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
1033 srel >>= 16;
1035 x = (x & 0xf87f) | ((srel << 7) & 0x0780);
1041 srel = (bfd_signed_vma) relocation;
1043 srel += bfd_get_16 (input_bfd, contents);
1045 srel += rel->r_addend;
1046 srel -= rel->r_offset;
1048 srel -= (input_section->output_section->vma +
1050 if (srel & 1)
1052 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1058 srel = (bfd_signed_vma) relocation;
1064 srel += addend;
1067 srel += rel->r_addend;
1068 srel -= rel->r_offset;
1069 srel -= (input_section->output_section->vma +
1071 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
1072 srel >>= 16;
1074 x = (x & 0xfff0) | (srel & 0xf);
1081 srel = (bfd_signed_vma) relocation;
1087 srel += addend;;
1090 srel += rel->r_addend;
1091 srel -= rel->r_offset;
1093 srel -= (input_section->output_section->vma +
1095 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
1096 srel >>= 16;
1098 x = (x & 0xf87f) | ((srel << 7) & 0x0780);
1104 srel = (bfd_signed_vma) relocation;
1106 srel += bfd_get_8 (input_bfd, contents);
1108 srel += rel->r_addend;
1109 bfd_put_8 (input_bfd, srel & 0xff, contents);
1115 srel = (bfd_signed_vma) relocation;
1121 srel += addend;
1124 srel += rel->r_addend;
1125 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 4);
1126 srel >>= 16;
1128 x = (x & 0xfff0) | (srel & 0xf);
1135 srel = (bfd_signed_vma) relocation;
1141 srel += addend;
1144 srel += rel->r_addend;
1145 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 6);
1146 srel >>= 16;
1148 x = (x & 0xfff0) | (srel & 0xf);
1155 srel = (bfd_signed_vma) relocation;
1162 srel += addend;
1165 srel += rel->r_addend;
1166 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 2);
1167 srel >>= 16;
1169 x = (x & 0xf0ff) | ((srel << 8) & 0x0f00);
1176 srel = (bfd_signed_vma) relocation;
1182 srel += addend;
1185 srel += rel->r_addend;
1186 bfd_put_16 (input_bfd, (srel & 0xffff), contents + 2);
1187 srel >>= 16;
1189 x = (x & 0xfff0) | (srel & 0xf);
1195 srel = (bfd_signed_vma) relocation;
1197 srel += bfd_get_16 (input_bfd, contents);
1199 srel += rel->r_addend;
1200 x = srel;
1203 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1210 srel = (bfd_signed_vma) relocation;
1211 srel += rel->r_addend;
1212 bfd_put_16 (input_bfd, (srel >> 16) & 0xffff, contents);
1218 srel = (bfd_signed_vma) relocation;
1224 srel += addend;
1227 srel += rel->r_addend;
1228 srel -= rel->r_offset;
1229 srel -= (input_section->output_section->vma +
1231 bfd_put_16 (input_bfd, srel & 0xffff, contents + 2);
1232 srel >>= 16;
1234 x = (x & 0xfff0) | (srel & 0xf);
1240 srel = (bfd_signed_vma) relocation;
1242 srel += bfd_get_16 (input_bfd, contents);
1244 srel += rel->r_addend;
1245 srel -= rel->r_offset;
1246 srel -= (input_section->output_section->vma +
1248 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1253 srel = (bfd_signed_vma) relocation;
1255 srel += (bfd_get_32 (input_bfd, contents) & 0x7fffffff);
1257 srel += rel->r_addend;
1258 srel += rel->r_addend;
1260 x = (x & 0x80000000) | ((srel >> 31) & 0x7fffffff);
1274 srel = (bfd_signed_vma) relocation;
1275 srel += rel->r_addend;
1276 srel -= rel->r_offset;
1277 srel -= 2; /* Branch instructions add 2 to the PC... */
1278 srel -= (input_section->output_section->vma +
1281 if (srel & 1)
1285 srel >>= 1;
1288 if (srel < -512 || srel > 511)
1306 x = (x & 0xfc00) | (srel & 0x3ff);
1312 srel = (bfd_signed_vma) relocation;
1313 srel += rel->r_addend;
1314 srel -= rel->r_offset;
1315 srel -= 2; /* Branch instructions add 2 to the PC... */
1316 srel -= (input_section->output_section->vma +
1319 if (srel & 1)
1323 srel >>= 1;
1326 if (srel < -512 || srel > 511)
1330 x = (x & 0xfc00) | (srel & 0x3ff);
1334 srel += 1;
1335 x = (x & 0xfc00) | (srel & 0x3ff);
1342 srel = (bfd_signed_vma) relocation;
1343 srel += rel->r_addend;
1344 srel -= rel->r_offset;
1346 srel -= (input_section->output_section->vma +
1349 if (srel & 1)
1352 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1357 srel = (bfd_signed_vma) relocation;
1358 srel += rel->r_addend;
1359 srel -= rel->r_offset;
1361 srel -= (input_section->output_section->vma +
1364 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1369 srel = (bfd_signed_vma) relocation;
1370 srel += rel->r_addend;
1371 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1376 srel = (bfd_signed_vma) relocation;
1377 srel += rel->r_addend;
1379 if (srel & 1)
1382 bfd_put_16 (input_bfd, srel & 0xffff, contents);
1387 srel = (bfd_signed_vma) relocation;
1388 srel += rel->r_addend;
1390 bfd_put_8 (input_bfd, srel & 0xff, contents);