Lines Matching refs:irel
277 Elf_Internal_Rela *irel) in symbol_value() argument
279 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in symbol_value()
284 isym = isymbuf + ELF32_R_SYM (irel->r_info); in symbol_value()
301 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in symbol_value()
536 Elf_Internal_Rela *irel, in ip2k_test_page_insn() argument
542 symval = symbol_value (abfd, misc->symtab_hdr, misc->isymbuf, irel); in ip2k_test_page_insn()
550 if (PAGENO (symval + irel->r_addend) != in ip2k_test_page_insn()
551 ip2k_nominal_page_bits (abfd, sec, irel->r_offset, misc->contents)) in ip2k_test_page_insn()
579 Elf_Internal_Rela *irel, *irelend, *irelbase; in adjust_all_relocations() local
593 for (irel = irelbase; irel < irelend; irel++) in adjust_all_relocations()
595 if (ELF32_R_TYPE (irel->r_info) != R_IP2K_NONE) in adjust_all_relocations()
598 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in adjust_all_relocations()
603 isym = isymbuf + ELF32_R_SYM (irel->r_info); in adjust_all_relocations()
610 + irel->r_addend; in adjust_all_relocations()
614 irel->r_addend += count; in adjust_all_relocations()
620 if (addr <= irel->r_offset && irel->r_offset < endaddr) in adjust_all_relocations()
621 irel->r_offset += count; in adjust_all_relocations()
652 for (irel = irelbase; irel < irelend; irel++) in adjust_all_relocations()
654 if (ELF32_R_TYPE (irel->r_info) != R_IP2K_NONE) in adjust_all_relocations()
657 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in adjust_all_relocations()
662 isym = isymbuf + ELF32_R_SYM (irel->r_info); in adjust_all_relocations()
672 + irel->r_addend; in adjust_all_relocations()
676 irel->r_addend += count; in adjust_all_relocations()
679 stabp = stabcontents + irel->r_offset - 8; in adjust_all_relocations()
806 Elf_Internal_Rela *irel, in ip2k_delete_page_insn() argument
816 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_IP2K_NONE); in ip2k_delete_page_insn()
819 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2)) in ip2k_delete_page_insn()
831 Elf_Internal_Rela *irel, in ip2k_relax_switch_table_128() argument
836 Elf_Internal_Rela *ireltest = irel; in ip2k_relax_switch_table_128()
841 addr = irel->r_offset; in ip2k_relax_switch_table_128()
875 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 4, code); in ip2k_relax_switch_table_128()
883 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset - 4, 2)) in ip2k_relax_switch_table_128()
889 while (irel < ireltest) in ip2k_relax_switch_table_128()
891 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc)) in ip2k_relax_switch_table_128()
893 irel += 2; in ip2k_relax_switch_table_128()
902 Elf_Internal_Rela *irel, in ip2k_relax_switch_table_256() argument
907 Elf_Internal_Rela *ireltest = irel; in ip2k_relax_switch_table_256()
912 addr = irel->r_offset; in ip2k_relax_switch_table_256()
948 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 2, code); in ip2k_relax_switch_table_256()
950 addr = irel->r_offset - 16; in ip2k_relax_switch_table_256()
952 addr = irel->r_offset - 14; in ip2k_relax_switch_table_256()
973 while (irel < ireltest) in ip2k_relax_switch_table_256()
975 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc)) in ip2k_relax_switch_table_256()
977 irel += 2; in ip2k_relax_switch_table_256()
994 Elf_Internal_Rela *irel; in ip2k_elf_relax_section_page() local
999 for (irel = misc->irelbase; irel < irelend; irel++) in ip2k_elf_relax_section_page()
1001 if (ELF32_R_TYPE (irel->r_info) != (int) R_IP2K_PAGE3) in ip2k_elf_relax_section_page()
1005 if (BASEADDR (sec) + irel->r_offset < page_start) in ip2k_elf_relax_section_page()
1011 if (BASEADDR (sec) + irel->r_offset > page_end) in ip2k_elf_relax_section_page()
1016 switch_table_128 = ip2k_is_switch_table_128 (abfd, sec, irel->r_offset, misc->contents); in ip2k_elf_relax_section_page()
1017 switch_table_256 = ip2k_is_switch_table_256 (abfd, sec, irel->r_offset, misc->contents); in ip2k_elf_relax_section_page()
1025 if (!ip2k_relax_switch_table_128 (abfd, sec, irel, again, misc)) in ip2k_elf_relax_section_page()
1033 if (!ip2k_relax_switch_table_256 (abfd, sec, irel, again, misc)) in ip2k_elf_relax_section_page()
1040 if (ip2k_test_page_insn (abfd, sec, irel, misc)) in ip2k_elf_relax_section_page()
1042 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc)) in ip2k_elf_relax_section_page()