Lines Matching refs:irel

698   Elf_Internal_Rela *irel, *irelend;  in elf32_h8_relax_section()  local
732 for (irel = internal_relocs; irel < irelend; irel++) in elf32_h8_relax_section()
739 elf32_h8_info_to_howto (abfd, &bfd_reloc, irel); in elf32_h8_relax_section()
743 if (irel != internal_relocs) in elf32_h8_relax_section()
744 last_reloc = irel - 1; in elf32_h8_relax_section()
746 switch(ELF32_R_TYPE (irel->r_info)) in elf32_h8_relax_section()
786 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in elf32_h8_relax_section()
792 isym = isymbuf + ELF32_R_SYM (irel->r_info); in elf32_h8_relax_section()
807 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in elf32_h8_relax_section()
831 switch (ELF32_R_TYPE (irel->r_info)) in elf32_h8_relax_section()
837 bfd_vma value = symval + irel->r_addend; in elf32_h8_relax_section()
842 + sec->output_offset + irel->r_offset - 1); in elf32_h8_relax_section()
861 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
911 && last_reloc->r_offset + 2 == irel->r_offset in elf32_h8_relax_section()
916 irel->r_info in elf32_h8_relax_section()
917 = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
921 = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
923 last_reloc->r_addend = irel->r_addend; in elf32_h8_relax_section()
934 irel->r_offset - 1, in elf32_h8_relax_section()
945 bfd_put_8 (abfd, 0x55, contents + irel->r_offset - 1); /* bsr8. */ in elf32_h8_relax_section()
948 bfd_put_8 (abfd, 0x40, contents + irel->r_offset - 1); /* bra8. */ in elf32_h8_relax_section()
953 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
958 irel->r_offset + 1, 2)) in elf32_h8_relax_section()
972 bfd_vma value = symval + irel->r_addend; in elf32_h8_relax_section()
979 + irel->r_offset - 2); in elf32_h8_relax_section()
997 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1004 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1013 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); /* bCC:8. */ in elf32_h8_relax_section()
1017 bfd_put_8 (abfd, 0x55, contents + irel->r_offset - 2); /* bsr8. */ in elf32_h8_relax_section()
1023 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
1025 irel->r_offset--; in elf32_h8_relax_section()
1029 irel->r_offset + 1, 2)) in elf32_h8_relax_section()
1052 value = bfd_h8300_pad_address (abfd, symval + irel->r_addend); in elf32_h8_relax_section()
1065 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1072 temp_code = code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1084 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1089 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1095 bfd_put_8 (abfd, 0x7f, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1102 bfd_put_8 (abfd, 0x7e, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1109 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
1113 irel->r_offset--; in elf32_h8_relax_section()
1117 irel->r_offset + 1, 2)) in elf32_h8_relax_section()
1140 value = bfd_h8300_pad_address (abfd, symval + irel->r_addend); in elf32_h8_relax_section()
1153 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1160 temp_code = code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1173 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1178 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1184 bfd_put_8 (abfd, 0x7f, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1191 bfd_put_8 (abfd, 0x7e, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1198 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
1200 irel->r_offset--; in elf32_h8_relax_section()
1204 irel->r_offset + 1, 4)) in elf32_h8_relax_section()
1229 value = bfd_h8300_pad_address (abfd, symval + irel->r_addend); in elf32_h8_relax_section()
1242 if (irel->r_offset >= 4) in elf32_h8_relax_section()
1247 op_ptr = contents + irel->r_offset - 4; in elf32_h8_relax_section()
1259 == irel->r_offset) in elf32_h8_relax_section()
1266 if (irel + 1 < irelend) in elf32_h8_relax_section()
1268 Elf_Internal_Rela *next_reloc = irel + 1; in elf32_h8_relax_section()
1277 == irel->r_offset) in elf32_h8_relax_section()
1312 op_ptr = contents + irel->r_offset - 2; in elf32_h8_relax_section()
1325 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1332 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1336 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_h8_relax_section()
1341 irel->r_offset + 1, 2)) in elf32_h8_relax_section()
1374 value = bfd_h8300_pad_address (abfd, symval + irel->r_addend); in elf32_h8_relax_section()
1386 if (irel->r_offset >= 4) in elf32_h8_relax_section()
1388 op0 = bfd_get_8 (abfd, contents + irel->r_offset - 4); in elf32_h8_relax_section()
1389 op1 = bfd_get_8 (abfd, contents + irel->r_offset - 3); in elf32_h8_relax_section()
1390 op2 = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1391 op3 = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1422 bfd_put_8 (abfd, op0n, contents + irel->r_offset - 4); in elf32_h8_relax_section()
1423 bfd_put_8 (abfd, op1n, contents + irel->r_offset - 3); in elf32_h8_relax_section()
1426 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_H8_DIR16); in elf32_h8_relax_section()
1427 irel->r_offset -= 2; in elf32_h8_relax_section()
1430 if (!elf32_h8_relax_delete_bytes (abfd, sec, irel->r_offset + 2, 4)) in elf32_h8_relax_section()
1494 Elf_Internal_Rela *irel, *irelend; in elf32_h8_relax_delete_bytes() local
1508 irel = elf_section_data (sec)->relocs; in elf32_h8_relax_delete_bytes()
1509 irelend = irel + sec->reloc_count; in elf32_h8_relax_delete_bytes()
1517 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_h8_relax_delete_bytes()
1520 if ((irel->r_offset > addr in elf32_h8_relax_delete_bytes()
1521 && irel->r_offset <= toaddr)) in elf32_h8_relax_delete_bytes()
1522 irel->r_offset -= count; in elf32_h8_relax_delete_bytes()