Lines Matching refs:irel
1574 Elf_Internal_Rela *irel; in msp430_elf_relax_adjust_locals() local
1578 irel = elf_section_data (sec)->relocs; in msp430_elf_relax_adjust_locals()
1579 if (irel == NULL) in msp430_elf_relax_adjust_locals()
1582 irelend = irel + sec->reloc_count; in msp430_elf_relax_adjust_locals()
1586 for (;irel < irelend; irel++) in msp430_elf_relax_adjust_locals()
1588 unsigned int sidx = ELF32_R_SYM(irel->r_info); in msp430_elf_relax_adjust_locals()
1592 if (irel->r_addend > addr && irel->r_addend < toaddr in msp430_elf_relax_adjust_locals()
1595 irel->r_addend -= count; in msp430_elf_relax_adjust_locals()
1610 Elf_Internal_Rela *irel; in msp430_elf_relax_delete_bytes() local
1626 irel = elf_section_data (sec)->relocs; in msp430_elf_relax_delete_bytes()
1627 irelend = irel + sec->reloc_count; in msp430_elf_relax_delete_bytes()
1637 for (; irel < irelend; irel++) in msp430_elf_relax_delete_bytes()
1640 if ((irel->r_offset > addr && irel->r_offset < toaddr)) in msp430_elf_relax_delete_bytes()
1641 irel->r_offset -= count; in msp430_elf_relax_delete_bytes()
1684 Elf_Internal_Rela *irel; in msp430_elf_relax_add_two_words() local
1710 irel = elf_section_data (sec)->relocs; in msp430_elf_relax_add_two_words()
1711 irelend = irel + sec->reloc_count; in msp430_elf_relax_add_two_words()
1713 for (; irel < irelend; irel++) in msp430_elf_relax_add_two_words()
1714 if ((irel->r_offset >= addr && irel->r_offset < sec_end)) in msp430_elf_relax_add_two_words()
1715 irel->r_offset += 4; in msp430_elf_relax_add_two_words()
1758 Elf_Internal_Rela * irel; in msp430_elf_relax_section() local
1787 for (irel = internal_relocs; irel < irelend; irel++) in msp430_elf_relax_section()
1794 && ELF32_R_TYPE (irel->r_info) == (int) R_MSP430X_10_PCREL) in msp430_elf_relax_section()
1797 && ELF32_R_TYPE (irel->r_info) == (int) R_MSP430_10_PCREL) in msp430_elf_relax_section()
1825 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in msp430_elf_relax_section()
1831 isym = isymbuf + ELF32_R_SYM (irel->r_info); in msp430_elf_relax_section()
1849 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in msp430_elf_relax_section()
1877 value += irel->r_addend; in msp430_elf_relax_section()
1880 value -= irel->r_offset; in msp430_elf_relax_section()
1890 opcode = bfd_get_16 (abfd, contents + irel->r_offset); in msp430_elf_relax_section()
1926 bfd_put_16 (abfd, opcode, contents + irel->r_offset); in msp430_elf_relax_section()
1933 (abfd, sec, irel->r_offset + 2, 0x0080, 0x0000); in msp430_elf_relax_section()
1940 irel->r_offset += 2; in msp430_elf_relax_section()
1941 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
1947 (abfd, sec, irel->r_offset + 2, 0x4030, 0x0000); in msp430_elf_relax_section()
1951 irel->r_offset += 4; in msp430_elf_relax_section()
1952 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
1965 for (irel = internal_relocs; irel < irelend; irel++) in msp430_elf_relax_section()
1992 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in msp430_elf_relax_section()
1998 isym = isymbuf + ELF32_R_SYM (irel->r_info); in msp430_elf_relax_section()
2016 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in msp430_elf_relax_section()
2043 if (ELF32_R_TYPE (irel->r_info) == (int) R_MSP430_RL_PCREL) in msp430_elf_relax_section()
2049 value -= irel->r_offset; in msp430_elf_relax_section()
2050 value += irel->r_addend; in msp430_elf_relax_section()
2062 if (irel->r_offset >= 6) in msp430_elf_relax_section()
2063 code0 = bfd_get_16 (abfd, contents + irel->r_offset - 6); in msp430_elf_relax_section()
2065 if (irel->r_offset >= 4) in msp430_elf_relax_section()
2066 code1 = bfd_get_16 (abfd, contents + irel->r_offset - 4); in msp430_elf_relax_section()
2068 code2 = bfd_get_16 (abfd, contents + irel->r_offset - 2); in msp430_elf_relax_section()
2100 irel->r_offset - 2)) in msp430_elf_relax_section()
2104 irel->r_offset - 4)) in msp430_elf_relax_section()
2116 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
2119 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
2125 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
2128 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in msp430_elf_relax_section()
2133 bfd_put_16 (abfd, rx->t0, contents + irel->r_offset - rx->off); in msp430_elf_relax_section()
2136 contents + irel->r_offset - rx->off + 2); in msp430_elf_relax_section()
2140 irel->r_offset - rx->off + in msp430_elf_relax_section()
2146 irel->r_offset -= 2; in msp430_elf_relax_section()