Lines Matching refs:irel

1619 elf32_avr_is_diff_reloc (Elf_Internal_Rela *irel)  in elf32_avr_is_diff_reloc()  argument
1621 return (ELF32_R_TYPE (irel->r_info) == R_AVR_DIFF8 in elf32_avr_is_diff_reloc()
1622 ||ELF32_R_TYPE (irel->r_info) == R_AVR_DIFF16 in elf32_avr_is_diff_reloc()
1623 || ELF32_R_TYPE (irel->r_info) == R_AVR_DIFF32); in elf32_avr_is_diff_reloc()
1633 Elf_Internal_Rela *irel, in elf32_avr_adjust_diff_reloc_value() argument
1648 reloc_contents = isec_contents + irel->r_offset; in elf32_avr_adjust_diff_reloc_value()
1652 switch (ELF32_R_TYPE (irel->r_info)) in elf32_avr_adjust_diff_reloc_value()
1680 bfd_vma end_address = symval + irel->r_addend; in elf32_avr_adjust_diff_reloc_value()
1689 switch (ELF32_R_TYPE (irel->r_info)) in elf32_avr_adjust_diff_reloc_value()
1729 Elf_Internal_Rela *irel, *irelend; in elf32_avr_relax_delete_bytes() local
1743 irel = elf_section_data (sec)->relocs; in elf32_avr_relax_delete_bytes()
1744 irelend = irel + sec->reloc_count; in elf32_avr_relax_delete_bytes()
1753 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_avr_relax_delete_bytes()
1758 + sec->output_offset + irel->r_offset); in elf32_avr_relax_delete_bytes()
1761 if ((irel->r_offset > addr in elf32_avr_relax_delete_bytes()
1762 && irel->r_offset < toaddr)) in elf32_avr_relax_delete_bytes()
1768 (unsigned int) irel->r_offset, in elf32_avr_relax_delete_bytes()
1769 (unsigned int) ((irel->r_offset) - count)); in elf32_avr_relax_delete_bytes()
1771 irel->r_offset -= count; in elf32_avr_relax_delete_bytes()
1801 irel = elf_section_data (isec)->relocs; in elf32_avr_relax_delete_bytes()
1803 if (irel == NULL) in elf32_avr_relax_delete_bytes()
1804 irel = _bfd_elf_link_read_relocs (abfd, isec, NULL, NULL, TRUE); in elf32_avr_relax_delete_bytes()
1806 for (irelend = irel + isec->reloc_count; in elf32_avr_relax_delete_bytes()
1807 irel < irelend; in elf32_avr_relax_delete_bytes()
1808 irel++) in elf32_avr_relax_delete_bytes()
1824 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in elf32_avr_relax_delete_bytes()
1829 isym = isymbuf + ELF32_R_SYM (irel->r_info); in elf32_avr_relax_delete_bytes()
1846 (unsigned int) (symval + irel->r_addend), in elf32_avr_relax_delete_bytes()
1850 && (symval + irel->r_addend) > shrinked_insn_address) in elf32_avr_relax_delete_bytes()
1852 if (elf32_avr_is_diff_reloc (irel)) in elf32_avr_relax_delete_bytes()
1854 elf32_avr_adjust_diff_reloc_value (abfd, isec, irel, in elf32_avr_relax_delete_bytes()
1860 irel->r_addend -= count; in elf32_avr_relax_delete_bytes()
1974 Elf_Internal_Rela *irel, *irelend; in elf32_avr_relax_section() local
2048 for (irel = internal_relocs; irel < irelend; irel++) in elf32_avr_relax_section()
2052 if ( ELF32_R_TYPE (irel->r_info) != R_AVR_13_PCREL in elf32_avr_relax_section()
2053 && ELF32_R_TYPE (irel->r_info) != R_AVR_7_PCREL in elf32_avr_relax_section()
2054 && ELF32_R_TYPE (irel->r_info) != R_AVR_CALL) in elf32_avr_relax_section()
2085 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info) in elf32_avr_relax_section()
2091 isym = isymbuf + ELF32_R_SYM (irel->r_info); in elf32_avr_relax_section()
2106 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info; in elf32_avr_relax_section()
2128 switch (ELF32_R_TYPE (irel->r_info)) in elf32_avr_relax_section()
2134 bfd_vma value = symval + irel->r_addend; in elf32_avr_relax_section()
2140 + sec->output_offset + irel->r_offset); in elf32_avr_relax_section()
2203 code_lsb = bfd_get_8 (abfd, contents + irel->r_offset); in elf32_avr_relax_section()
2204 code_msb = bfd_get_8 (abfd, contents + irel->r_offset + 1); in elf32_avr_relax_section()
2212 bfd_put_8 (abfd, 0x00, contents + irel->r_offset); in elf32_avr_relax_section()
2213 bfd_put_8 (abfd, 0xD0, contents + irel->r_offset + 1); in elf32_avr_relax_section()
2218 bfd_put_8 (abfd, 0x00, contents + irel->r_offset); in elf32_avr_relax_section()
2219 bfd_put_8 (abfd, 0xC0, contents + irel->r_offset + 1); in elf32_avr_relax_section()
2225 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in elf32_avr_relax_section()
2233 bfd_put_8 (abfd, 0x00, contents + irel->r_offset + 2); in elf32_avr_relax_section()
2234 bfd_put_8 (abfd, 0x00, contents + irel->r_offset + 3); in elf32_avr_relax_section()
2240 irel->r_offset + 2, 2)) in elf32_avr_relax_section()
2256 code_msb = bfd_get_8 (abfd, contents + irel->r_offset + 1); in elf32_avr_relax_section()
2257 code_lsb = bfd_get_8 (abfd, contents + irel->r_offset + 0); in elf32_avr_relax_section()
2261 + sec->output_offset + irel->r_offset); in elf32_avr_relax_section()
2272 if (irel->r_offset + 3 < sec->size) in elf32_avr_relax_section()
2275 bfd_get_8 (abfd, contents + irel->r_offset + 3); in elf32_avr_relax_section()
2277 bfd_get_8 (abfd, contents + irel->r_offset + 2); in elf32_avr_relax_section()
2285 bfd_put_8 (abfd, code_msb, contents + irel->r_offset + 1); in elf32_avr_relax_section()
2302 if (irel->r_offset + 5 < sec->size) in elf32_avr_relax_section()
2305 bfd_get_8 (abfd, contents + irel->r_offset + 5); in elf32_avr_relax_section()
2307 bfd_get_8 (abfd, contents + irel->r_offset + 4); in elf32_avr_relax_section()
2316 bfd_put_8 (abfd, code_lsb, contents + irel->r_offset); in elf32_avr_relax_section()
2339 if (irel->r_offset + insn_size + 1 < sec->size) in elf32_avr_relax_section()
2342 bfd_get_8 (abfd, contents + irel->r_offset in elf32_avr_relax_section()
2345 bfd_get_8 (abfd, contents + irel->r_offset in elf32_avr_relax_section()
2368 if (irel->r_offset >= 2) in elf32_avr_relax_section()
2374 bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_avr_relax_section()
2376 bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_avr_relax_section()
2421 irel->r_offset + insn_size; in elf32_avr_relax_section()
2564 irel->r_offset + insn_size, 2)) in elf32_avr_relax_section()