Lines Matching refs:irel

680   Elf_Internal_Rela *irel, *irelend;  in m68hc11_elf_relax_section()  local
719 for (irel = internal_relocs; irel < irelend; irel++) in m68hc11_elf_relax_section()
729 if (ELF32_R_TYPE (irel->r_info) != (int) R_M68HC11_16 in m68hc11_elf_relax_section()
730 && ELF32_R_TYPE (irel->r_info) != (int) R_M68HC11_RL_JUMP in m68hc11_elf_relax_section()
731 && ELF32_R_TYPE (irel->r_info) != (int) R_M68HC11_RL_GROUP) in m68hc11_elf_relax_section()
763 if (ELF32_R_TYPE (irel->r_info) == (int) R_M68HC11_RL_JUMP) in m68hc11_elf_relax_section()
773 if (irel->r_offset + 2 >= sec->size) in m68hc11_elf_relax_section()
779 code = bfd_get_8 (abfd, contents + irel->r_offset + 2); in m68hc11_elf_relax_section()
785 nrel = irel + 1; in m68hc11_elf_relax_section()
787 || irel->r_offset + 3 != nrel->r_offset in m68hc11_elf_relax_section()
793 roffset = bfd_get_8 (abfd, contents + irel->r_offset + 1); in m68hc11_elf_relax_section()
797 prev_insn_branch = irel; in m68hc11_elf_relax_section()
815 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in m68hc11_elf_relax_section()
818 isym = isymbuf + ELF32_R_SYM (irel->r_info); in m68hc11_elf_relax_section()
831 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in m68hc11_elf_relax_section()
853 if (ELF32_R_TYPE (irel->r_info) == (int) R_M68HC11_RL_GROUP) in m68hc11_elf_relax_section()
859 if (irel->r_offset == sec->size) in m68hc11_elf_relax_section()
862 prev_insn_group = irel; in m68hc11_elf_relax_section()
895 if (ELF32_R_TYPE (irel->r_info) == (int) R_M68HC11_16 in m68hc11_elf_relax_section()
921 irel->r_offset = prev_insn_branch->r_offset + 1; in m68hc11_elf_relax_section()
922 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_section()
925 irel->r_offset + 1, 1); in m68hc11_elf_relax_section()
933 irel->r_offset = prev_insn_branch->r_offset + 1; in m68hc11_elf_relax_section()
934 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_section()
937 irel->r_offset + 1, 3); in m68hc11_elf_relax_section()
944 else if (ELF32_R_TYPE (irel->r_info) == (int) R_M68HC11_16 in m68hc11_elf_relax_section()
952 offset = bfd_get_16 (abfd, contents + irel->r_offset); in m68hc11_elf_relax_section()
977 irel = prev_insn_group; in m68hc11_elf_relax_section()
979 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_section()
987 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in m68hc11_elf_relax_section()
1009 contents + irel->r_offset - 1); in m68hc11_elf_relax_section()
1012 m68hc11_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 1); in m68hc11_elf_relax_section()
1015 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_section()
1021 else if (ELF32_R_TYPE (irel->r_info) == R_M68HC11_16 && !is_far) in m68hc11_elf_relax_section()
1027 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in m68hc11_elf_relax_section()
1030 offset = value - (irel->r_offset in m68hc11_elf_relax_section()
1033 offset += bfd_get_16 (abfd, contents + irel->r_offset); in m68hc11_elf_relax_section()
1053 contents + irel->r_offset - 1); in m68hc11_elf_relax_section()
1055 contents + irel->r_offset); in m68hc11_elf_relax_section()
1056 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_section()
1059 irel->r_offset + 1, 1); in m68hc11_elf_relax_section()
1120 Elf_Internal_Rela *irel, *irelend; in m68hc11_elf_relax_delete_bytes() local
1136 irel = elf_section_data (sec)->relocs; in m68hc11_elf_relax_delete_bytes()
1137 irelend = irel + sec->reloc_count; in m68hc11_elf_relax_delete_bytes()
1146 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in m68hc11_elf_relax_delete_bytes()
1154 old_offset = irel->r_offset; in m68hc11_elf_relax_delete_bytes()
1159 if (ELF32_R_TYPE (irel->r_info) != R_M68HC11_RL_JUMP in m68hc11_elf_relax_delete_bytes()
1160 && irel->r_offset >= addr && irel->r_offset < addr + count) in m68hc11_elf_relax_delete_bytes()
1161 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in m68hc11_elf_relax_delete_bytes()
1164 if (ELF32_R_TYPE (irel->r_info) == R_M68HC11_NONE) in m68hc11_elf_relax_delete_bytes()
1168 if ((irel->r_offset > addr in m68hc11_elf_relax_delete_bytes()
1169 && irel->r_offset < toaddr)) in m68hc11_elf_relax_delete_bytes()
1170 irel->r_offset -= count; in m68hc11_elf_relax_delete_bytes()
1174 switch (ELF32_R_TYPE (irel->r_info)) in m68hc11_elf_relax_delete_bytes()
1180 code = bfd_get_8 (abfd, contents + irel->r_offset); in m68hc11_elf_relax_delete_bytes()
1219 offset = bfd_get_8 (abfd, contents + irel->r_offset + branch_pos); in m68hc11_elf_relax_delete_bytes()
1222 if (irel->r_offset < addr && raddr > addr) in m68hc11_elf_relax_delete_bytes()
1225 bfd_put_8 (abfd, offset, contents + irel->r_offset + branch_pos); in m68hc11_elf_relax_delete_bytes()
1227 else if (irel->r_offset >= addr && raddr <= addr) in m68hc11_elf_relax_delete_bytes()
1230 bfd_put_8 (abfd, offset, contents + irel->r_offset + branch_pos); in m68hc11_elf_relax_delete_bytes()