Home | History | Annotate | Download | only in bfd

Lines Matching refs:irel

1213   Elf_Internal_Rela *irel, *irelend;
1228 irel = elf_section_data (sec)->relocs;
1229 irelend = irel + sec->reloc_count;
1237 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
1239 if ((irel->r_offset > addr && irel->r_offset < toaddr))
1240 irel->r_offset -= count;
1254 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++)
1261 if (ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH8
1262 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH16
1263 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_SWITCH32)
1266 r_symndx = ELF32_R_SYM (irel->r_info);
1274 subsym = addsym - irel->r_addend;
1278 irel->r_addend -= count;
1709 Elf_Internal_Rela *irel, *irelend;
1736 for (irel = internal_relocs; irel < irelend; irel++)
1742 if (ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP16
1743 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_DISP24
1744 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM32
1745 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM20
1746 && ELF32_R_TYPE (irel->r_info) != (int) R_CR16_IMM16)
1773 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
1779 isym = isymbuf + ELF32_R_SYM (irel->r_info);
1798 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info;
1824 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP24)
1830 value -= irel->r_offset;
1831 value += irel->r_addend;
1842 contents + irel->r_offset);
1847 contents + irel->r_offset);
1857 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1862 irel->r_offset + 2, 2))
1873 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_DISP16)
1879 value -= irel->r_offset;
1880 value += irel->r_addend;
1891 code = bfd_get_16 (abfd, contents + irel->r_offset);
1895 bfd_put_16 (abfd, (code & 0xf0f0), contents + irel->r_offset);
1905 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1910 irel->r_offset + 2, 2))
1920 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM32)
1927 value1 = bfd_get_32 (abfd, contents + irel->r_offset + 2);
1936 code = bfd_get_16 (abfd, contents + irel->r_offset);
1954 bfd_put_8 (abfd, 0x05, contents + irel->r_offset + 1);
1956 bfd_put_8 (abfd, 0x04, contents + irel->r_offset + 1);
1958 bfd_put_8 (abfd, (code & 0xf) << 4, contents + irel->r_offset);
1966 contents + irel->r_offset))),
1967 contents + irel->r_offset);
1972 contents + irel->r_offset))),
1973 contents + irel->r_offset);
1976 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
1981 irel->r_offset + 2, 2))
1997 code = bfd_get_16 (abfd, contents + irel->r_offset);
2006 bfd_put_8 (abfd, 0x54, contents + irel->r_offset + 1);
2008 bfd_put_8 (abfd, 0x60, contents + irel->r_offset + 1);
2010 bfd_put_8 (abfd, 0x56, contents + irel->r_offset + 1);
2014 bfd_put_8 (abfd, 0xb0 | (code & 0xf), contents + irel->r_offset);
2022 contents + irel->r_offset))),
2023 contents + irel->r_offset);
2025 bfd_put_16 (abfd, value1, contents + irel->r_offset + 2);
2029 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
2034 irel->r_offset + 2, 2))
2046 if ((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM20)
2047 || (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM16))
2053 value1 = ((bfd_get_16 (abfd, contents + irel->r_offset + 2) & 0xffff));
2055 if (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_IMM20)
2057 value1 |= ((bfd_get_16 (abfd, contents + irel->r_offset + 1)
2068 code = bfd_get_16 (abfd, contents + irel->r_offset);
2079 bfd_put_8 (abfd, 0x60, contents + irel->r_offset);
2081 bfd_put_8 (abfd, 0x54, contents + irel->r_offset);
2083 contents + irel->r_offset + 1);
2088 bfd_put_8 (abfd, 0x56, contents + irel->r_offset);
2090 bfd_put_8 (abfd, 0x54, contents + irel->r_offset);
2092 bfd_put_8 (abfd, 0x58, contents + irel->r_offset);
2094 bfd_put_8 (abfd, 0x5A, contents + irel->r_offset);
2096 bfd_put_8 (abfd, 0x60, contents + irel->r_offset);
2098 bfd_put_8 (abfd, 0x30, contents + irel->r_offset);
2100 bfd_put_8 (abfd, 0x2C, contents + irel->r_offset);
2102 bfd_put_8 (abfd, 0x32, contents + irel->r_offset);
2104 bfd_put_8 (abfd, 0x38, contents + irel->r_offset);
2106 bfd_put_8 (abfd, 0x3C, contents + irel->r_offset);
2108 bfd_put_8 (abfd, 0x3F, contents + irel->r_offset);
2110 bfd_put_8 (abfd, 0x3A, contents + irel->r_offset);
2112 bfd_put_8 (abfd, 0x50, contents + irel->r_offset);
2114 bfd_put_8 (abfd, 0x52, contents + irel->r_offset);
2118 bfd_put_8 (abfd, (code & 0xf), contents + irel->r_offset + 1);
2122 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info),
2127 irel->r_offset + 2, 2))
2673 Elf_Internal_Rela *irel, *irelend;
2701 for (irel = internal_relocs; irel < irelend; irel++, p += 8)
2712 if (!((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32a)
2713 || (ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32)))
2721 if (ELF32_R_SYM (irel->r_info) < symtab_hdr->sh_info)
2738 isym = isymbuf + ELF32_R_SYM (irel->r_info);
2747 indx = ELF32_R_SYM (irel->r_info) - symtab_hdr->sh_info;
2757 bfd_put_32 (abfd, irel->r_offset + datasec->output_offset, p);
2759 if ((ELF32_R_TYPE (irel->r_info) == (int) R_CR16_NUM32a)