Lines Matching refs:irel

789   Elf_Internal_Rela *internal_relocs, *irel, *rel_end;  in xtensa_read_table_entries()  local
833 irel = internal_relocs; in xtensa_read_table_entries()
836 irel = NULL; in xtensa_read_table_entries()
848 while (irel && in xtensa_read_table_entries()
849 (irel->r_offset < off in xtensa_read_table_entries()
850 || (irel->r_offset == off in xtensa_read_table_entries()
851 && ELF32_R_TYPE (irel->r_info) == R_XTENSA_NONE))) in xtensa_read_table_entries()
853 irel += 1; in xtensa_read_table_entries()
854 if (irel >= rel_end) in xtensa_read_table_entries()
855 irel = 0; in xtensa_read_table_entries()
858 if (irel && irel->r_offset == off) in xtensa_read_table_entries()
861 unsigned long r_symndx = ELF32_R_SYM (irel->r_info); in xtensa_read_table_entries()
862 BFD_ASSERT (ELF32_R_TYPE (irel->r_info) == R_XTENSA_32); in xtensa_read_table_entries()
869 address += (section_addr + sym_off + irel->r_addend); in xtensa_read_table_entries()
4037 Elf_Internal_Rela *irel) in get_relocation_opcode() argument
4048 if (bfd_get_section_limit (abfd, sec) <= irel->r_offset) in get_relocation_opcode()
4058 xtensa_insnbuf_from_chars (isa, ibuff, &contents[irel->r_offset], in get_relocation_opcode()
4059 sec->size - irel->r_offset); in get_relocation_opcode()
4061 slot = get_relocation_slot (ELF32_R_TYPE (irel->r_info)); in get_relocation_opcode()
4073 Elf_Internal_Rela *irel) in is_l32r_relocation() argument
4076 if (!is_operand_relocation (ELF32_R_TYPE (irel->r_info))) in is_l32r_relocation()
4078 opcode = get_relocation_opcode (abfd, sec, contents, irel); in is_l32r_relocation()
4755 Elf_Internal_Rela *irel, in contract_asm_expansion() argument
4759 elf_xtensa_do_asm_simplify (contents, irel->r_offset, content_length, in contract_asm_expansion()
4767 irel->r_offset += 3; in contract_asm_expansion()
4768 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), R_XTENSA_SLOT0_OP); in contract_asm_expansion()
4980 Elf_Internal_Rela *irel, in r_reloc_init() argument
4987 if (irel) in r_reloc_init()
4989 r_rel->rela = *irel; in r_reloc_init()
5092 Elf_Internal_Rela *irel) in find_source_reloc() argument
5099 && src_relocs[i].r_rel.rela.r_offset == irel->r_offset in find_source_reloc()
5101 == ELF32_R_TYPE (irel->r_info))) in find_source_reloc()
6842 Elf_Internal_Rela *irel = &internal_relocs[i]; in find_relaxable_sections() local
6853 && ELF32_R_TYPE (irel->r_info) == R_XTENSA_ASM_EXPAND) in find_relaxable_sections()
6856 if (is_resolvable_asm_expansion (abfd, sec, contents, irel, in find_relaxable_sections()
6865 r_reloc_init (&r_rel, abfd, irel, contents, in find_relaxable_sections()
6877 if (is_operand_relocation (ELF32_R_TYPE (irel->r_info))) in find_relaxable_sections()
6880 get_relocation_opcode (abfd, sec, contents, irel); in find_relaxable_sections()
6884 if (!is_alt_relocation (ELF32_R_TYPE (irel->r_info)) in find_relaxable_sections()
6936 Elf_Internal_Rela *irel = &internal_relocs[i]; in collect_source_relocs() local
6941 r_reloc_init (&r_rel, abfd, irel, contents, sec_size); in collect_source_relocs()
6954 if (is_alt_relocation (ELF32_R_TYPE (irel->r_info))) in collect_source_relocs()
6960 opcode = get_relocation_opcode (abfd, sec, contents, irel); in collect_source_relocs()
6969 else if (is_operand_relocation (ELF32_R_TYPE (irel->r_info))) in collect_source_relocs()
6971 opcode = get_relocation_opcode (abfd, sec, contents, irel); in collect_source_relocs()
6972 opnd = get_relocation_opnd (opcode, ELF32_R_TYPE (irel->r_info)); in collect_source_relocs()
6994 Elf_Internal_Rela *irel = &internal_relocs[i]; in collect_source_relocs() local
6997 if (!is_resolvable_asm_expansion (abfd, sec, contents, irel, link_info, in collect_source_relocs()
7012 irel, internal_relocs); in collect_source_relocs()
7039 irel->r_info = ELF32_R_INFO (ELF32_R_SYM (irel->r_info), in collect_source_relocs()
7050 irel->r_info = ELF32_R_INFO (0, R_XTENSA_NONE); in collect_source_relocs()
7072 Elf_Internal_Rela *irel, in is_resolvable_asm_expansion() argument
7090 if (ELF32_R_TYPE (irel->r_info) != R_XTENSA_ASM_EXPAND) in is_resolvable_asm_expansion()
7094 opcode = get_expanded_call_opcode (contents + irel->r_offset, in is_resolvable_asm_expansion()
7095 sec_size - irel->r_offset, &uses_l32r); in is_resolvable_asm_expansion()
7105 r_reloc_init (&r_rel, abfd, irel, contents, sec_size); in is_resolvable_asm_expansion()
7124 || is_reloc_sym_weak (abfd, irel))) in is_resolvable_asm_expansion()
7150 self_address += sec->output_offset + irel->r_offset + 3; in is_resolvable_asm_expansion()
7160 + sec->output_offset + irel->r_offset + 3); in is_resolvable_asm_expansion()
7187 Elf_Internal_Rela *irel = &internal_relocs[i]; in find_associated_l32r_irel() local
7189 if (irel == other_irel) in find_associated_l32r_irel()
7191 if (irel->r_offset != other_irel->r_offset) in find_associated_l32r_irel()
7193 if (is_l32r_relocation (abfd, sec, contents, irel)) in find_associated_l32r_irel()
7194 return irel; in find_associated_l32r_irel()
7212 Elf_Internal_Rela *irel = &internal_relocs[i]; in build_reloc_opcodes() local
7213 reloc_opcodes[i] = get_relocation_opcode (abfd, sec, contents, irel); in build_reloc_opcodes()
7278 Elf_Internal_Rela *irel = &internal_relocs[i]; in compute_text_actions() local
7286 if (irel && ELF32_R_TYPE (irel->r_info) != R_XTENSA_ASM_SIMPLIFY) in compute_text_actions()
7288 r_offset = irel->r_offset; in compute_text_actions()
7302 sec->vma + irel->r_offset); in compute_text_actions()
7464 Elf_Internal_Rela *irel; in compute_ebb_proposed_actions() local
7475 irel = &ebb->relocs[rel_idx]; in compute_ebb_proposed_actions()
7476 if (irel->r_offset == offset in compute_ebb_proposed_actions()
7477 && ELF32_R_TYPE (irel->r_info) == R_XTENSA_ASM_SIMPLIFY) in compute_ebb_proposed_actions()
7483 irel->r_offset); in compute_ebb_proposed_actions()
7977 Elf_Internal_Rela *irel; in check_section_ebb_pcrels_fit() local
8000 irel = &internal_relocs[i]; in check_section_ebb_pcrels_fit()
8001 r_type = ELF32_R_TYPE (irel->r_info); in check_section_ebb_pcrels_fit()
8013 r_reloc_init (&r_rel, abfd, irel, contents, in check_section_ebb_pcrels_fit()
8019 orig_self_offset = irel->r_offset; in check_section_ebb_pcrels_fit()
8056 if (is_alt_relocation (ELF32_R_TYPE (irel->r_info))) in check_section_ebb_pcrels_fit()
8069 opcode = get_relocation_opcode (abfd, sec, contents, irel); in check_section_ebb_pcrels_fit()
8076 opnum = get_relocation_opnd (opcode, ELF32_R_TYPE (irel->r_info)); in check_section_ebb_pcrels_fit()
8242 Elf_Internal_Rela *irel = NULL; in compute_removed_literals() local
8247 irel = get_irel_at_offset (sec, internal_relocs, in compute_removed_literals()
8253 if (irel && (ELF32_R_TYPE (irel->r_info) != R_XTENSA_32 in compute_removed_literals()
8254 && ELF32_R_TYPE (irel->r_info) != R_XTENSA_PLT)) in compute_removed_literals()
8276 irel, rel, prop_table, ptblsize)) in compute_removed_literals()
8287 &last_loc_is_prev, irel, in compute_removed_literals()
8320 Elf_Internal_Rela *irel; in get_irel_at_offset() local
8328 irel = bsearch (&key, internal_relocs, sec->reloc_count, in get_irel_at_offset()
8330 if (!irel) in get_irel_at_offset()
8335 i = irel - internal_relocs; in get_irel_at_offset()
8344 irel = &internal_relocs[i]; in get_irel_at_offset()
8345 r_type = ELF32_R_TYPE (irel->r_info); in get_irel_at_offset()
8346 if (irel->r_offset == offset && r_type != R_XTENSA_NONE) in get_irel_at_offset()
8347 return irel; in get_irel_at_offset()
8395 Elf_Internal_Rela *irel, in remove_dead_literal() argument
8447 if (irel) in remove_dead_literal()
8450 shrink_dynamic_reloc_sections (link_info, abfd, sec, irel); in remove_dead_literal()
8452 irel->r_info = ELF32_R_INFO (0, R_XTENSA_NONE); in remove_dead_literal()
8468 Elf_Internal_Rela *irel, in identify_literal_placement() argument
8506 r_reloc_init (&r_rel, abfd, irel, contents, sec_size); in identify_literal_placement()
8507 if (!irel) in identify_literal_placement()
8905 Elf_Internal_Rela *irel; in relax_section() local
8918 irel = &internal_relocs[i]; in relax_section()
8919 source_offset = irel->r_offset; in relax_section()
8922 r_type = ELF32_R_TYPE (irel->r_info); in relax_section()
8923 r_reloc_init (&r_rel, abfd, irel, contents, in relax_section()
8936 irel->r_offset)) in relax_section()
8940 shrink_dynamic_reloc_sections (link_info, abfd, sec, irel); in relax_section()
8941 irel->r_info = ELF32_R_INFO (0, R_XTENSA_NONE); in relax_section()
8942 irel->r_offset = offset_with_removed_text in relax_section()
8943 (&relax_info->action_list, irel->r_offset); in relax_section()
8951 irel->r_offset); in relax_section()
8959 irel, &error_message); in relax_section()
8964 irel->r_offset); in relax_section()
8974 r_reloc_init (&r_rel, abfd, irel, contents, sec_size); in relax_section()
8975 r_type = ELF32_R_TYPE (irel->r_info); in relax_section()
8980 (&relax_info->action_list, irel->r_offset); in relax_section()
8981 irel->r_offset = source_offset; in relax_section()
9119 irel->r_info = ELF32_R_INFO (r_symndx, r_type); in relax_section()
9120 irel->r_addend = new_reloc.rela.r_addend; in relax_section()
9825 Elf_Internal_Rela *irel; in relax_property_section() local
9838 irel = &internal_relocs[i]; in relax_property_section()
9839 r_type = ELF32_R_TYPE (irel->r_info); in relax_property_section()
9844 r_reloc_init (&val.r_rel, abfd, irel, contents, sec_size); in relax_property_section()
9845 size_p = &contents[irel->r_offset + 4]; in relax_property_section()
9848 flags_p = &contents[irel->r_offset + 8]; in relax_property_section()
9849 BFD_ASSERT (irel->r_offset + entry_size <= sec_size); in relax_property_section()
9918 irel->r_addend += diff; in relax_property_section()
9933 Elf_Internal_Rela *irel, *next_rel, *rel_end; in relax_property_section() local
9966 for (irel = next_rel; irel < rel_end; irel++) in relax_property_section()
9968 if ((irel->r_offset == offset in relax_property_section()
9969 && ELF32_R_TYPE (irel->r_info) != R_XTENSA_NONE) in relax_property_section()
9970 || irel->r_offset > offset) in relax_property_section()
9972 offset_rel = irel; in relax_property_section()
9975 irel->r_offset -= removed_bytes; in relax_property_section()
9983 for (irel = offset_rel + 1; irel < rel_end; irel++) in relax_property_section()
9985 if (ELF32_R_TYPE (irel->r_info) != R_XTENSA_NONE) in relax_property_section()
9987 extra_rel = irel; in relax_property_section()
10104 for (irel = next_rel; irel < rel_end; irel++) in relax_property_section()
10105 irel->r_offset -= removed_bytes; in relax_property_section()
10755 Elf_Internal_Rela *irel = &internal_relocs[i]; in xtensa_callback_required_dependence() local
10756 if (is_l32r_relocation (abfd, sec, contents, irel)) in xtensa_callback_required_dependence()
10762 r_reloc_init (&l32r_rel, abfd, irel, contents, sec_size); in xtensa_callback_required_dependence()
10771 (*callback) (sec, irel->r_offset, target_sec, target_offset, in xtensa_callback_required_dependence()