Lines Matching refs:insn_rel
11578 Elf_Internal_Rela *insn_rel = NULL, *label_rel = NULL, *irel; in nds32_relax_adjust_label() local
11596 for (label_rel = internal_relocs, insn_rel = internal_relocs; in nds32_relax_adjust_label()
11603 while (insn_rel < irelend && insn_rel->r_offset < label_rel->r_offset) in nds32_relax_adjust_label()
11604 insn_rel++; in nds32_relax_adjust_label()
11606 for (;insn_rel < irelend && insn_rel->r_offset == label_rel->r_offset; in nds32_relax_adjust_label()
11607 insn_rel++) in nds32_relax_adjust_label()
11610 if (ELF32_R_TYPE (insn_rel->r_info) == R_NDS32_INSN16) in nds32_relax_adjust_label()
11613 if (insn_rel < irelend && insn_rel->r_offset == label_rel->r_offset in nds32_relax_adjust_label()
11614 && insn_rel < label_rel) in nds32_relax_adjust_label()
11618 memcpy (&rel_temp, insn_rel, sizeof (Elf_Internal_Rela)); in nds32_relax_adjust_label()
11619 memcpy (insn_rel, label_rel, sizeof (Elf_Internal_Rela)); in nds32_relax_adjust_label()
11625 insn_rel = NULL; in nds32_relax_adjust_label()
11667 insn_rel = NULL; in nds32_relax_adjust_label()
11686 if (insn_rel) in nds32_relax_adjust_label()
11690 if (is_convert_32_to_16 (abfd, sec, insn_rel, internal_relocs, in nds32_relax_adjust_label()
11693 nds32_elf_write_16 (abfd, contents, insn_rel, in nds32_relax_adjust_label()
11697 (relax_blank_list, insn_rel->r_offset + 2, 2)) in nds32_relax_adjust_label()
11700 else if (is_16bit_NOP (abfd, sec, insn_rel)) in nds32_relax_adjust_label()
11703 (relax_blank_list, insn_rel->r_offset, 2)) in nds32_relax_adjust_label()
11706 insn_rel->r_info = in nds32_relax_adjust_label()
11707 ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), R_NDS32_NONE); in nds32_relax_adjust_label()
11710 insn_rel = irel; in nds32_relax_adjust_label()
11735 if (!insn_rel) in nds32_relax_adjust_label()
11774 if (is_convert_32_to_16 (abfd, sec, insn_rel, in nds32_relax_adjust_label()
11777 nds32_elf_write_16 (abfd, contents, insn_rel, in nds32_relax_adjust_label()
11781 (relax_blank_list, insn_rel->r_offset + 2, 2)) in nds32_relax_adjust_label()
11784 else if (is_16bit_NOP (abfd, sec, insn_rel)) in nds32_relax_adjust_label()
11787 (relax_blank_list, insn_rel->r_offset, 2)) in nds32_relax_adjust_label()
11793 insn_rel = NULL; in nds32_relax_adjust_label()
11799 if (insn_rel && (address & 0x2 || opt_size)) in nds32_relax_adjust_label()
11801 if (is_convert_32_to_16 (abfd, sec, insn_rel, internal_relocs, in nds32_relax_adjust_label()
11804 nds32_elf_write_16 (abfd, contents, insn_rel, internal_relocs, in nds32_relax_adjust_label()
11807 (relax_blank_list, insn_rel->r_offset + 2, 2)) in nds32_relax_adjust_label()
11809 insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), in nds32_relax_adjust_label()
11812 else if (is_16bit_NOP (abfd, sec, insn_rel)) in nds32_relax_adjust_label()
11815 (relax_blank_list, insn_rel->r_offset, 2)) in nds32_relax_adjust_label()
11817 insn_rel->r_info = ELF32_R_INFO (ELF32_R_SYM (insn_rel->r_info), in nds32_relax_adjust_label()
11821 insn_rel = NULL; in nds32_relax_adjust_label()