Lines Matching defs:srel
271 bfd_signed_vma srel;
277 srel = (bfd_signed_vma) relocation;
278 srel += rel->r_addend;
279 srel -= rel->r_offset;
280 srel -= 2; /* Branch instructions add 2 to the PC... */
281 srel -= (input_section->output_section->vma +
284 if (srel & 1)
288 srel >>= 1;
291 if (srel < -512 || srel > 511)
295 x = (x & 0xfc00) | (srel & 0x3ff);
301 srel = (bfd_signed_vma) relocation;
302 srel += rel->r_addend;
303 srel -= rel->r_offset;
304 srel -= 2; /* Branch instructions add 2 to the PC... */
305 srel -= (input_section->output_section->vma +
308 if (srel & 1)
312 srel >>= 1;
315 if (srel < -512 || srel > 511)
319 x = (x & 0xfc00) | (srel & 0x3ff);
323 srel += 1;
324 x = (x & 0xfc00) | (srel & 0x3ff);
331 srel = (bfd_signed_vma) relocation;
332 srel += rel->r_addend;
333 srel -= rel->r_offset;
335 srel -= (input_section->output_section->vma +
338 if (srel & 1)
341 bfd_put_16 (input_bfd, srel & 0xffff, contents);
346 srel = (bfd_signed_vma) relocation;
347 srel += rel->r_addend;
348 srel -= rel->r_offset;
350 srel -= (input_section->output_section->vma +
353 bfd_put_16 (input_bfd, srel & 0xffff, contents);
358 srel = (bfd_signed_vma) relocation;
359 srel += rel->r_addend;
360 bfd_put_16 (input_bfd, srel & 0xffff, contents);
365 srel = (bfd_signed_vma) relocation;
366 srel += rel->r_addend;
368 if (srel & 1)
371 bfd_put_16 (input_bfd, srel & 0xffff, contents);