Lines Matching refs:special_alt

1554 			    struct special_alt *special_alt,  in handle_group_alt()  argument
1568 orig_alt_group->cfi = calloc(special_alt->orig_len, in handle_group_alt()
1578 if (insn->offset >= special_alt->orig_off + special_alt->orig_len) in handle_group_alt()
1595 if (special_alt->new_len < special_alt->orig_len) { in handle_group_alt()
1612 nop->sec = special_alt->new_sec; in handle_group_alt()
1613 nop->offset = special_alt->new_off + special_alt->new_len; in handle_group_alt()
1614 nop->len = special_alt->orig_len - special_alt->new_len; in handle_group_alt()
1621 if (!special_alt->new_len) { in handle_group_alt()
1630 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
1649 !arch_support_alt_relocation(special_alt, insn, alt_reloc)) { in handle_group_alt()
1663 if (dest_off == special_alt->new_off + special_alt->new_len) { in handle_group_alt()
1675 special_alt->new_sec, special_alt->new_off); in handle_group_alt()
1695 struct special_alt *special_alt, in handle_jump_alt() argument
1707 if (opts.hack_jump_label && special_alt->key_addend & 2) { in handle_jump_alt()
1748 struct special_alt *special_alt, *tmp; in add_special_section_alts() local
1756 list_for_each_entry_safe(special_alt, tmp, &special_alts, list) { in add_special_section_alts()
1758 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
1759 special_alt->orig_off); in add_special_section_alts()
1762 special_alt->orig_sec, special_alt->orig_off); in add_special_section_alts()
1768 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
1769 new_insn = find_insn(file, special_alt->new_sec, in add_special_section_alts()
1770 special_alt->new_off); in add_special_section_alts()
1773 special_alt->new_sec, in add_special_section_alts()
1774 special_alt->new_off); in add_special_section_alts()
1780 if (special_alt->group) { in add_special_section_alts()
1781 if (!special_alt->orig_len) { in add_special_section_alts()
1787 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
1791 } else if (special_alt->jump_or_nop) { in add_special_section_alts()
1792 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
1806 alt->skip_orig = special_alt->skip_orig; in add_special_section_alts()
1807 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
1810 list_del(&special_alt->list); in add_special_section_alts()
1811 free(special_alt); in add_special_section_alts()