Lines Matching defs:irel

677   Elf_Internal_Rela *irel, *irelend;
696 irel = elf_section_data (sec)->relocs;
697 irelend = irel + sec->reloc_count;
705 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
707 if ((irel->r_offset > addr && irel->r_offset < toaddr))
708 irel->r_offset -= count;
721 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
727 r_symndx = ELF32_R_SYM (irel->r_info);
735 subsym = addsym - irel->r_addend;
739 irel->r_addend -= count;
1038 Elf_Internal_Rela *irel, *irelend;
1064 for (irel = internal_relocs; irel < irelend; irel++)
1070 if (ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP16
1071 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP24)
1098 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
1104 isym = isymbuf + ELF32_R_SYM (irel->r_info);
1123 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info;
1149 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP24)
1155 value -= irel->r_offset;
1156 value += irel->r_addend;
1166 code = (unsigned int) bfd_get_32 (abfd, contents + irel->r_offset);
1171 bfd_put_16 (abfd, 0x1800 | ((0xf & (code >>20))<<4), contents + irel->r_offset);
1172 bfd_put_16 (abfd, value, contents + irel->r_offset+2);
1183 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1188 irel->r_offset + 2, 2))
1199 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP16)
1205 value -= irel->r_offset;
1206 value += irel->r_addend;
1216 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset);
1221 bfd_put_8 (abfd, 0x1 | ((0xf & (code>>4))<<4), contents + irel->r_offset);
1222 bfd_put_8 (abfd, value, contents + irel->r_offset+2);
1233 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1238 irel->r_offset + 2, 2))
1250 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM32)
1260 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset);
1272 bfd_put_8 (abfd, (code & 0xff) - 0x10, contents + irel->r_offset);
1275 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1280 irel->r_offset + 2, 2))
1290 if ((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM20)
1291 || (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM16))
1301 code = (unsigned short) bfd_get_8 (abfd, contents + irel->r_offset);
1313 bfd_put_8 (abfd, (code & 0xff) - 0x10, contents + irel->r_offset);
1316 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1321 irel->r_offset + 2, 2))