Lines Matching refs:special_alt
1672 struct special_alt *special_alt, in handle_group_alt() argument
1689 orig_alt_group->cfi = calloc(special_alt->orig_len, in handle_group_alt()
1698 if (insn->offset >= special_alt->orig_off + special_alt->orig_len) in handle_group_alt()
1710 orig_alt_group->first_insn->offset != special_alt->orig_len) { in handle_group_alt()
1715 special_alt->orig_len); in handle_group_alt()
1726 if (special_alt->new_len < special_alt->orig_len) { in handle_group_alt()
1741 nop->sec = special_alt->new_sec; in handle_group_alt()
1742 nop->offset = special_alt->new_off + special_alt->new_len; in handle_group_alt()
1743 nop->len = special_alt->orig_len - special_alt->new_len; in handle_group_alt()
1750 if (!special_alt->new_len) { in handle_group_alt()
1759 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
1778 !arch_support_alt_relocation(special_alt, insn, alt_reloc)) { in handle_group_alt()
1791 if (dest_off == special_alt->new_off + special_alt->new_len) { in handle_group_alt()
1802 special_alt->new_sec, special_alt->new_off); in handle_group_alt()
1821 struct special_alt *special_alt, in handle_jump_alt() argument
1832 if (opts.hack_jump_label && special_alt->key_addend & 2) { in handle_jump_alt()
1871 struct special_alt *special_alt, *tmp; in add_special_section_alts() local
1879 list_for_each_entry_safe(special_alt, tmp, &special_alts, list) { in add_special_section_alts()
1881 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
1882 special_alt->orig_off); in add_special_section_alts()
1885 special_alt->orig_sec, special_alt->orig_off); in add_special_section_alts()
1891 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
1892 new_insn = find_insn(file, special_alt->new_sec, in add_special_section_alts()
1893 special_alt->new_off); in add_special_section_alts()
1896 special_alt->new_sec, in add_special_section_alts()
1897 special_alt->new_off); in add_special_section_alts()
1903 if (special_alt->group) { in add_special_section_alts()
1904 if (!special_alt->orig_len) { in add_special_section_alts()
1909 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
1913 } else if (special_alt->jump_or_nop) { in add_special_section_alts()
1914 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
1928 alt->skip_orig = special_alt->skip_orig; in add_special_section_alts()
1929 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
1933 list_del(&special_alt->list); in add_special_section_alts()
1934 free(special_alt); in add_special_section_alts()