Lines Matching refs:irel
1535 Elf_Internal_Rela * irel; in elf32_rx_relax_delete_bytes() local
1557 irel = elf_section_data (sec)->relocs; in elf32_rx_relax_delete_bytes()
1558 irelend = irel + sec->reloc_count; in elf32_rx_relax_delete_bytes()
1573 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_rx_relax_delete_bytes()
1576 if (irel->r_offset > addr in elf32_rx_relax_delete_bytes()
1577 && (irel->r_offset < toaddr in elf32_rx_relax_delete_bytes()
1578 || (force_snip && irel->r_offset == toaddr))) in elf32_rx_relax_delete_bytes()
1579 irel->r_offset -= count; in elf32_rx_relax_delete_bytes()
1584 if (irel->r_offset == toaddr in elf32_rx_relax_delete_bytes()
1585 && ELF32_R_TYPE (irel->r_info) == R_RX_RH_RELAX in elf32_rx_relax_delete_bytes()
1586 && irel->r_addend & RX_RELAXA_ALIGN) in elf32_rx_relax_delete_bytes()
1587 irel->r_offset -= count; in elf32_rx_relax_delete_bytes()
1939 move_reloc (Elf_Internal_Rela * irel, Elf_Internal_Rela * srel, int delta) in move_reloc() argument
1943 irel ++; in move_reloc()
1944 while (irel <= srel) in move_reloc()
1946 if (irel->r_offset == old_offset) in move_reloc()
1947 irel->r_offset += delta; in move_reloc()
1948 irel ++; in move_reloc()
1965 Elf_Internal_Rela * irel; in elf32_rx_relax_section() local
2067 for (irel = internal_relocs; irel < irelend; irel++) in elf32_rx_relax_section()
2068 if (ELF32_R_TYPE (irel->r_info) == R_RX_RH_RELAX in elf32_rx_relax_section()
2069 && irel->r_addend & RX_RELAXA_ALIGN) in elf32_rx_relax_section()
2071 int this_glue = 1 << (irel->r_addend & RX_RELAXA_ANUM); in elf32_rx_relax_section()
2080 for (irel = internal_relocs; irel < irelend; irel++) in elf32_rx_relax_section()
2086 if (ELF32_R_TYPE (irel->r_info) != R_RX_RH_RELAX) in elf32_rx_relax_section()
2089 if (irel->r_addend & RX_RELAXA_ALIGN in elf32_rx_relax_section()
2112 if (irel->r_addend & RX_RELAXA_ALIGN) in elf32_rx_relax_section()
2116 Elf_Internal_Rela *erel = irel + 1; in elf32_rx_relax_section()
2124 alignment = 1 << (irel->r_addend & RX_RELAXA_ANUM); in elf32_rx_relax_section()
2126 if (erel->r_offset - irel->r_offset < alignment) in elf32_rx_relax_section()
2129 nbytes = erel->r_offset - irel->r_offset; in elf32_rx_relax_section()
2140 if (irel->r_addend & RX_RELAXA_ELIGN) in elf32_rx_relax_section()
2143 insn = contents + irel->r_offset; in elf32_rx_relax_section()
2145 nrelocs = irel->r_addend & RX_RELAXA_RNUM; in elf32_rx_relax_section()
2162 srel = irel; in elf32_rx_relax_section()
2191 if (irel->r_addend & RX_RELAXA_DSP6) in elf32_rx_relax_section()
2231 irel->r_addend = 0; in elf32_rx_relax_section()
2246 move_reloc (irel, srel, -2); in elf32_rx_relax_section()
2263 irel->r_addend = 0; in elf32_rx_relax_section()
2275 move_reloc (irel, srel, -2); in elf32_rx_relax_section()
2283 if (irel->r_addend & RX_RELAXA_DSP4) in elf32_rx_relax_section()
2335 irel->r_addend = 0; in elf32_rx_relax_section()
2350 move_reloc (irel, srel, -2); in elf32_rx_relax_section()
2357 if (irel->r_addend & RX_RELAXA_DSP14) in elf32_rx_relax_section()
2397 if (irel->r_addend & RX_RELAXA_IMM6) in elf32_rx_relax_section()
2449 irel->r_addend = 0; in elf32_rx_relax_section()
2487 irel->r_addend = 0; in elf32_rx_relax_section()
2489 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2521 irel->r_addend = 0; in elf32_rx_relax_section()
2523 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2532 if (irel->r_addend & RX_RELAXA_IMM12) in elf32_rx_relax_section()
2596 irel->r_addend = 0; in elf32_rx_relax_section()
2632 irel->r_addend = 0; in elf32_rx_relax_section()
2634 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2641 if (irel->r_addend & RX_RELAXA_BRA) in elf32_rx_relax_section()
2661 && srel[1].r_offset < irel->r_offset + pcrel) in elf32_rx_relax_section()
2706 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2740 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2758 move_reloc (irel, srel, -1); in elf32_rx_relax_section()
2769 && srel->r_offset != irel->r_offset + 1 in elf32_rx_relax_section()
2783 && srel->r_offset != irel->r_offset + 1 in elf32_rx_relax_section()
2792 move_reloc (irel, srel, -2); in elf32_rx_relax_section()
2814 srel = irel; in elf32_rx_relax_section()
2826 if (srel[1].r_offset == irel->r_offset + 2) in elf32_rx_relax_section()
2861 if (srel[1].r_offset == irel->r_offset + ioff) in elf32_rx_relax_section()
2960 move_reloc (irel, disp_rel, -1); in elf32_rx_relax_section()
2965 move_reloc (disp_rel ? disp_rel : irel, in elf32_rx_relax_section()
2967 irel->r_offset - imm_rel->r_offset + 2); in elf32_rx_relax_section()
2974 irel->r_addend = 0; in elf32_rx_relax_section()