Lines Matching refs:addend
221 bfd_vma addend; member
234 remember_hi16s_reloc (bfd *abfd, bfd_vma addend, bfd_byte *address) in remember_hi16s_reloc() argument
246 entry->addend = addend; in remember_hi16s_reloc()
265 find_remembered_hi16s_reloc (bfd_vma addend, bool *already_found) in find_remembered_hi16s_reloc() argument
274 if (entry->addend == addend in find_remembered_hi16s_reloc()
441 unsigned long addend) in v850_elf_perform_lo16_relocation() argument
446 if ((BIT15_SET (*insn + addend) && ! BIT15_SET (addend)) in v850_elf_perform_lo16_relocation()
447 || (OVERFLOWS (addend, *insn) in v850_elf_perform_lo16_relocation()
448 && ((! BIT15_SET (*insn)) || (BIT15_SET (addend))))) in v850_elf_perform_lo16_relocation()
452 (addend, & already_updated); in v850_elf_perform_lo16_relocation()
475 *insn = (*insn + addend) & 0xffff; in v850_elf_perform_lo16_relocation()
485 bfd_vma addend, in v850_elf_perform_relocation() argument
490 bfd_signed_vma saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
505 bfd_put_32 (abfd, addend, address); in v850_elf_perform_relocation()
512 insn |= ((addend & 0x7f) << 4) | ((addend & 0x7fff80) << (16-7)); in v850_elf_perform_relocation()
521 if ((addend % 2) != 0) in v850_elf_perform_relocation()
526 insn |= (((addend & 0xfffe) << 16) | ((addend & 0x3f0000) >> 16)); in v850_elf_perform_relocation()
535 if ((addend % 2) != 0) in v850_elf_perform_relocation()
540 insn |= ((addend & 0xfffe) << 16) | ((addend & 0x10000) >> (16-4)); in v850_elf_perform_relocation()
548 if ((addend % 2) != 0) in v850_elf_perform_relocation()
553 insn |= (-addend & 0xfffe); in v850_elf_perform_relocation()
561 if ((addend % 2) != 0) in v850_elf_perform_relocation()
566 insn |= ((addend & 0x1f0) << 7) | ((addend & 0x0e) << 3); in v850_elf_perform_relocation()
571 addend += (bfd_get_16 (abfd, address) << 16); in v850_elf_perform_relocation()
572 addend = (addend >> 16); in v850_elf_perform_relocation()
573 insn = addend; in v850_elf_perform_relocation()
579 remember_hi16s_reloc (abfd, addend, address); in v850_elf_perform_relocation()
581 addend += (bfd_get_16 (abfd, address) << 16); in v850_elf_perform_relocation()
582 addend = (addend >> 16) + ((addend & 0x8000) != 0); in v850_elf_perform_relocation()
585 if (addend > 0xffff) in v850_elf_perform_relocation()
586 addend = 0; in v850_elf_perform_relocation()
588 insn = addend; in v850_elf_perform_relocation()
594 if (! v850_elf_perform_lo16_relocation (abfd, &insn, addend)) in v850_elf_perform_relocation()
600 addend += (char) bfd_get_8 (abfd, address); in v850_elf_perform_relocation()
602 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
607 bfd_put_8 (abfd, addend, address); in v850_elf_perform_relocation()
611 addend += bfd_get_16 (abfd, address); in v850_elf_perform_relocation()
613 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
618 insn = addend; in v850_elf_perform_relocation()
624 addend += insn & 0xfffe; in v850_elf_perform_relocation()
626 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
631 insn = (0xfffe & addend) in v850_elf_perform_relocation()
637 addend += ((insn & 0x3f) << 1); in v850_elf_perform_relocation()
639 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
644 if (addend & 1) in v850_elf_perform_relocation()
648 insn |= (addend >> 1); in v850_elf_perform_relocation()
656 addend += bfd_get_16 (abfd, address); in v850_elf_perform_relocation()
658 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
663 insn = addend; in v850_elf_perform_relocation()
671 addend += (insn & 0xfffe); in v850_elf_perform_relocation()
673 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
678 if (addend & 1) in v850_elf_perform_relocation()
681 insn = (addend &~ (bfd_vma) 1) | (insn & 1); in v850_elf_perform_relocation()
686 addend += ((insn & 0x7e) << 1); in v850_elf_perform_relocation()
688 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
693 if (addend & 3) in v850_elf_perform_relocation()
697 insn |= (addend >> 1); in v850_elf_perform_relocation()
702 addend += ((insn & 0x7f) << 1); in v850_elf_perform_relocation()
704 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
709 if (addend & 1) in v850_elf_perform_relocation()
713 insn |= (addend >> 1); in v850_elf_perform_relocation()
718 addend += insn & 0x7f; in v850_elf_perform_relocation()
720 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
726 insn |= addend; in v850_elf_perform_relocation()
731 addend += ((insn & 0xf) << 1); in v850_elf_perform_relocation()
733 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
738 if (addend & 1) in v850_elf_perform_relocation()
742 insn |= (addend >> 1); in v850_elf_perform_relocation()
747 addend += insn & 0xf; in v850_elf_perform_relocation()
749 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
755 insn |= addend; in v850_elf_perform_relocation()
764 if (! v850_elf_perform_lo16_relocation (abfd, &result, addend)) in v850_elf_perform_relocation()
777 if (! v850_elf_perform_lo16_relocation (abfd, &result, addend)) in v850_elf_perform_relocation()
789 addend += ((insn & 0xfffe0000) >> 16) + ((insn & 0x20) >> 5); in v850_elf_perform_relocation()
791 saddend = (bfd_signed_vma) addend; in v850_elf_perform_relocation()
797 insn |= (addend & 1) << 5; in v850_elf_perform_relocation()
798 insn |= (addend &~ (bfd_vma) 1) << 16; in v850_elf_perform_relocation()
834 || reloc->addend == 0)) in v850_elf_reloc()
867 relocation += reloc->addend; in v850_elf_reloc()
869 reloc->addend = relocation; in v850_elf_reloc()
1961 bfd_vma addend, in v850_elf_final_link_relocate() argument
2165 return v850_elf_perform_relocation (input_bfd, r_type, value + addend, hit_data); in v850_elf_final_link_relocate()
3505 bfd_vma addend; in v850_elf_relax_section() local
3738 addend = irel->r_addend; in v850_elf_relax_section()
3740 foff = (symval + addend in v850_elf_relax_section()
3751 symval, addend, foff); in v850_elf_relax_section()
3775 addend = 0; in v850_elf_relax_section()
3782 … 0x00000780 | (JARL_R2 (insn[2])<<11) | ((addend << 16) & 0xffff) | ((addend >> 16) & 0xf), in v850_elf_relax_section()
3943 addend = irel->r_addend; in v850_elf_relax_section()
3945 foff = (symval + addend in v850_elf_relax_section()
3956 symval, addend, foff); in v850_elf_relax_section()
3983 irel->r_addend = addend; in v850_elf_relax_section()
3984 addend = 0; in v850_elf_relax_section()
3991 … 0x00000780 | ((addend << 15) & 0xffff0000) | ((addend >> 17) & 0xf), in v850_elf_relax_section()
4019 irel->r_addend = addend; in v850_elf_relax_section()
4020 addend = 0; in v850_elf_relax_section()
4027 … 0x0585 | ((addend << 10) & 0xf800) | ((addend << 3) & 0x0070), in v850_elf_relax_section()