Lines Matching refs:irel
271 /* Return the value of the symbol associated with the relocation IREL. */
277 Elf_Internal_Rela *irel)
279 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
284 isym = isymbuf + ELF32_R_SYM (irel->r_info);
301 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info;
536 Elf_Internal_Rela *irel,
542 symval = symbol_value (abfd, misc->symtab_hdr, misc->isymbuf, irel);
550 if (PAGENO (symval + irel->r_addend) !=
551 ip2k_nominal_page_bits (abfd, sec, irel->r_offset, misc->contents))
579 Elf_Internal_Rela *irel, *irelend, *irelbase;
593 for (irel = irelbase; irel < irelend; irel++)
595 if (ELF32_R_TYPE (irel->r_info) != R_IP2K_NONE)
598 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
603 isym = isymbuf + ELF32_R_SYM (irel->r_info);
610 + irel->r_addend;
614 irel->r_addend += count;
620 if (addr <= irel->r_offset && irel->r_offset < endaddr)
621 irel->r_offset += count;
651 for (irel = irelbase; irel < irelend; irel++)
653 if (ELF32_R_TYPE (irel->r_info) != R_IP2K_NONE)
656 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
661 isym = isymbuf + ELF32_R_SYM (irel->r_info);
671 + irel->r_addend;
675 irel->r_addend += count;
678 stabp = stabcontents + irel->r_offset - 8;
805 Elf_Internal_Rela *irel,
815 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_IP2K_NONE);
818 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2))
830 Elf_Internal_Rela *irel,
835 Elf_Internal_Rela *ireltest = irel;
840 addr = irel->r_offset;
874 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 4, code);
882 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset - 4, 2))
888 while (irel < ireltest)
890 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))
892 irel += 2;
901 Elf_Internal_Rela *irel,
906 Elf_Internal_Rela *ireltest = irel;
911 addr = irel->r_offset;
947 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 2, code);
949 addr = irel->r_offset - 16;
951 addr = irel->r_offset - 14;
972 while (irel < ireltest)
974 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))
976 irel += 2;
993 Elf_Internal_Rela *irel;
998 for (irel = misc->irelbase; irel < irelend; irel++)
1000 if (ELF32_R_TYPE (irel->r_info) != (int) R_IP2K_PAGE3)
1004 if (BASEADDR (sec) + irel->r_offset < page_start)
1010 if (BASEADDR (sec) + irel->r_offset > page_end)
1015 switch_table_128 = ip2k_is_switch_table_128 (abfd, sec, irel->r_offset, misc->contents);
1016 switch_table_256 = ip2k_is_switch_table_256 (abfd, sec, irel->r_offset, misc->contents);
1024 if (!ip2k_relax_switch_table_128 (abfd, sec, irel, again, misc))
1032 if (!ip2k_relax_switch_table_256 (abfd, sec, irel, again, misc))
1039 if (ip2k_test_page_insn (abfd, sec, irel, misc))
1041 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))