Lines Matching refs:irel

593   Elf_Internal_Rela *irel, *irelend;  in elf32_crx_relax_delete_bytes()  local
608 irel = elf_section_data (sec)->relocs; in elf32_crx_relax_delete_bytes()
609 irelend = irel + sec->reloc_count; in elf32_crx_relax_delete_bytes()
617 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
620 if ((irel->r_offset > addr in elf32_crx_relax_delete_bytes()
621 && irel->r_offset < toaddr)) in elf32_crx_relax_delete_bytes()
622 irel->r_offset -= count; in elf32_crx_relax_delete_bytes()
636 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
643 if (ELF32_R_TYPE (irel->r_info) != (int) R_CRX_SWITCH8 in elf32_crx_relax_delete_bytes()
644 && ELF32_R_TYPE (irel->r_info) != (int) R_CRX_SWITCH16 in elf32_crx_relax_delete_bytes()
645 && ELF32_R_TYPE (irel->r_info) != (int) R_CRX_SWITCH32) in elf32_crx_relax_delete_bytes()
648 r_symndx = ELF32_R_SYM (irel->r_info); in elf32_crx_relax_delete_bytes()
656 subsym = addsym - irel->r_addend; in elf32_crx_relax_delete_bytes()
660 irel->r_addend -= count; in elf32_crx_relax_delete_bytes()
966 Elf_Internal_Rela *irel, *irelend; in elf32_crx_relax_section() local
993 for (irel = internal_relocs; irel < irelend; irel++) in elf32_crx_relax_section()
999 if (ELF32_R_TYPE (irel->r_info) != (int) R_CRX_REL32 in elf32_crx_relax_section()
1000 && ELF32_R_TYPE (irel->r_info) != (int) R_CRX_REL16 in elf32_crx_relax_section()
1001 && ELF32_R_TYPE (irel->r_info) != (int) R_CRX_REL24 in elf32_crx_relax_section()
1002 && ELF32_R_TYPE (irel->r_info) != (int) R_CRX_IMM32) in elf32_crx_relax_section()
1029 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in elf32_crx_relax_section()
1035 isym = isymbuf + ELF32_R_SYM (irel->r_info); in elf32_crx_relax_section()
1054 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in elf32_crx_relax_section()
1080 if (ELF32_R_TYPE (irel->r_info) == (int) R_CRX_REL32) in elf32_crx_relax_section()
1086 value -= irel->r_offset; in elf32_crx_relax_section()
1087 value += irel->r_addend; in elf32_crx_relax_section()
1097 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_crx_relax_section()
1101 bfd_put_8 (abfd, 0x30, contents + irel->r_offset + 1); in elf32_crx_relax_section()
1103 bfd_put_8 (abfd, 0x7e, contents + irel->r_offset); in elf32_crx_relax_section()
1113 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_crx_relax_section()
1118 irel->r_offset + 2, 2)) in elf32_crx_relax_section()
1129 if (ELF32_R_TYPE (irel->r_info) == (int) R_CRX_REL16) in elf32_crx_relax_section()
1135 value -= irel->r_offset; in elf32_crx_relax_section()
1136 value += irel->r_addend; in elf32_crx_relax_section()
1146 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_crx_relax_section()
1158 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_crx_relax_section()
1163 irel->r_offset + 2, 2)) in elf32_crx_relax_section()
1174 if (ELF32_R_TYPE (irel->r_info) == (int) R_CRX_REL24) in elf32_crx_relax_section()
1180 value -= irel->r_offset; in elf32_crx_relax_section()
1181 value += irel->r_addend; in elf32_crx_relax_section()
1191 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_crx_relax_section()
1207 bfd_put_8 (abfd, 0x30, contents + irel->r_offset + 1); in elf32_crx_relax_section()
1210 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_crx_relax_section()
1215 irel->r_offset + 4, 2)) in elf32_crx_relax_section()
1226 if (ELF32_R_TYPE (irel->r_info) == (int) R_CRX_IMM32) in elf32_crx_relax_section()
1236 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_crx_relax_section()
1248 bfd_put_8 (abfd, (code & 0xff) - 0x10, contents + irel->r_offset); in elf32_crx_relax_section()
1251 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_crx_relax_section()
1256 irel->r_offset + 2, 2)) in elf32_crx_relax_section()