Lines Matching refs:irel

1264   Elf_Internal_Rela *irel, *irelend;  in elf32_cr16_relax_delete_bytes()  local
1279 irel = elf_section_data (sec)->relocs; in elf32_cr16_relax_delete_bytes()
1280 irelend = irel + sec->reloc_count; in elf32_cr16_relax_delete_bytes()
1288 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_cr16_relax_delete_bytes()
1290 if ((irel->r_offset > addr && irel->r_offset < toaddr)) in elf32_cr16_relax_delete_bytes()
1291 irel->r_offset -= count; in elf32_cr16_relax_delete_bytes()
1305 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_cr16_relax_delete_bytes()
1312 if (ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH8 in elf32_cr16_relax_delete_bytes()
1313 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH16 in elf32_cr16_relax_delete_bytes()
1314 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH32) in elf32_cr16_relax_delete_bytes()
1317 r_symndx = ELF32_R_SYM (irel->r_info); in elf32_cr16_relax_delete_bytes()
1325 subsym = addsym - irel->r_addend; in elf32_cr16_relax_delete_bytes()
1329 irel->r_addend -= count; in elf32_cr16_relax_delete_bytes()
1763 Elf_Internal_Rela *irel, *irelend; in elf32_cr16_relax_section() local
1789 for (irel = internal_relocs; irel < irelend; irel++) in elf32_cr16_relax_section()
1795 if (ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP16 in elf32_cr16_relax_section()
1796 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP24 in elf32_cr16_relax_section()
1797 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM32 in elf32_cr16_relax_section()
1798 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM20 in elf32_cr16_relax_section()
1799 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM16) in elf32_cr16_relax_section()
1826 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in elf32_cr16_relax_section()
1832 isym = isymbuf + ELF32_R_SYM (irel->r_info); in elf32_cr16_relax_section()
1851 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in elf32_cr16_relax_section()
1877 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP24) in elf32_cr16_relax_section()
1883 value -= irel->r_offset; in elf32_cr16_relax_section()
1884 value += irel->r_addend; in elf32_cr16_relax_section()
1894 code = (unsigned int) bfd_get_32 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
1898 bfd_put_16 (abfd, 0x1800 | ((0xf & (code >> 20)) << 4), contents + irel->r_offset); in elf32_cr16_relax_section()
1908 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_cr16_relax_section()
1913 irel->r_offset + 2, 2)) in elf32_cr16_relax_section()
1924 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP16) in elf32_cr16_relax_section()
1930 value -= irel->r_offset; in elf32_cr16_relax_section()
1931 value += irel->r_addend; in elf32_cr16_relax_section()
1942 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
1946 bfd_put_16 (abfd, (code & 0xf0f0), contents + irel->r_offset); in elf32_cr16_relax_section()
1956 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_cr16_relax_section()
1961 irel->r_offset + 2, 2)) in elf32_cr16_relax_section()
1971 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM32) in elf32_cr16_relax_section()
1978 value1 = ((bfd_get_32 (abfd, contents + irel->r_offset + 2) >> 16) in elf32_cr16_relax_section()
1979 |(((bfd_get_32 (abfd, contents + irel->r_offset + 2) & 0xffff) << 16))); in elf32_cr16_relax_section()
1987 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
2005 bfd_put_8 (abfd, 0x05, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2007 bfd_put_8 (abfd, 0x04, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2009 bfd_put_8 (abfd, (code & 0xf) << 4, contents + irel->r_offset); in elf32_cr16_relax_section()
2015 …bfd_put_8 (abfd, (0x0f | (bfd_get_8(abfd, contents + irel->r_offset))), contents + irel->r_offset); in elf32_cr16_relax_section()
2017 …(abfd, (((value1 >> 16)&0xf) | (bfd_get_8(abfd, contents + irel->r_offset))), contents + irel->r_o… in elf32_cr16_relax_section()
2020 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_cr16_relax_section()
2025 irel->r_offset + 2, 2)) in elf32_cr16_relax_section()
2041 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
2050 bfd_put_8 (abfd, 0x54, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2052 bfd_put_8 (abfd, 0x60, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2054 bfd_put_8 (abfd, 0x56, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2058 bfd_put_8 (abfd, 0xb0 | (code & 0xf), contents + irel->r_offset); in elf32_cr16_relax_section()
2064 …bfd_put_8 (abfd, (0x0f | (bfd_get_8(abfd, contents + irel->r_offset))), contents + irel->r_offset); in elf32_cr16_relax_section()
2066 bfd_put_16 (abfd, value1, contents + irel->r_offset + 2); in elf32_cr16_relax_section()
2070 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_cr16_relax_section()
2075 irel->r_offset + 2, 2)) in elf32_cr16_relax_section()
2087 if ((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM20) in elf32_cr16_relax_section()
2088 || (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM16)) in elf32_cr16_relax_section()
2094 value1 = ((bfd_get_16 (abfd, contents + irel->r_offset + 2) & 0xffff)); in elf32_cr16_relax_section()
2096 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM20) in elf32_cr16_relax_section()
2098 value1 |= ((bfd_get_16 (abfd, contents + irel->r_offset + 1) & 0xf000) << 0x4); in elf32_cr16_relax_section()
2108 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
2119 bfd_put_8 (abfd, 0x60, contents + irel->r_offset); in elf32_cr16_relax_section()
2121 bfd_put_8 (abfd, 0x54, contents + irel->r_offset); in elf32_cr16_relax_section()
2122 bfd_put_8 (abfd, (code & 0xf0) >> 4, contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2127 bfd_put_8 (abfd, 0x56, contents + irel->r_offset); in elf32_cr16_relax_section()
2129 bfd_put_8 (abfd, 0x54, contents + irel->r_offset); in elf32_cr16_relax_section()
2131 bfd_put_8 (abfd, 0x58, contents + irel->r_offset); in elf32_cr16_relax_section()
2133 bfd_put_8 (abfd, 0x5A, contents + irel->r_offset); in elf32_cr16_relax_section()
2135 bfd_put_8 (abfd, 0x60, contents + irel->r_offset); in elf32_cr16_relax_section()
2137 bfd_put_8 (abfd, 0x30, contents + irel->r_offset); in elf32_cr16_relax_section()
2139 bfd_put_8 (abfd, 0x2C, contents + irel->r_offset); in elf32_cr16_relax_section()
2141 bfd_put_8 (abfd, 0x32, contents + irel->r_offset); in elf32_cr16_relax_section()
2143 bfd_put_8 (abfd, 0x38, contents + irel->r_offset); in elf32_cr16_relax_section()
2145 bfd_put_8 (abfd, 0x3C, contents + irel->r_offset); in elf32_cr16_relax_section()
2147 bfd_put_8 (abfd, 0x3F, contents + irel->r_offset); in elf32_cr16_relax_section()
2149 bfd_put_8 (abfd, 0x3A, contents + irel->r_offset); in elf32_cr16_relax_section()
2151 bfd_put_8 (abfd, 0x50, contents + irel->r_offset); in elf32_cr16_relax_section()
2153 bfd_put_8 (abfd, 0x52, contents + irel->r_offset); in elf32_cr16_relax_section()
2157 bfd_put_8 (abfd, (code & 0xf), contents + irel->r_offset + 1); in elf32_cr16_relax_section()
2161 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_cr16_relax_section()
2166 irel->r_offset + 2, 2)) in elf32_cr16_relax_section()
2812 Elf_Internal_Rela *irel, *irelend; in bfd_cr16_elf32_create_embedded_relocs() local
2839 for (irel = internal_relocs; irel < irelend; irel++, p += 8) in bfd_cr16_elf32_create_embedded_relocs()
2850 if (!((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32a) in bfd_cr16_elf32_create_embedded_relocs()
2851 || (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32))) in bfd_cr16_elf32_create_embedded_relocs()
2859 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in bfd_cr16_elf32_create_embedded_relocs()
2876 isym = isymbuf + ELF32_R_SYM (irel->r_info); in bfd_cr16_elf32_create_embedded_relocs()
2885 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in bfd_cr16_elf32_create_embedded_relocs()
2895 bfd_put_32 (abfd, irel->r_offset + datasec->output_offset, p); in bfd_cr16_elf32_create_embedded_relocs()
2897 if ((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32a) in bfd_cr16_elf32_create_embedded_relocs()