Lines Matching refs:special_alt

1082 			    struct special_alt *special_alt,  in handle_group_alt()  argument
1096 orig_alt_group->cfi = calloc(special_alt->orig_len, in handle_group_alt()
1106 if (insn->offset >= special_alt->orig_off + special_alt->orig_len) in handle_group_alt()
1123 if (special_alt->new_len < special_alt->orig_len) { in handle_group_alt()
1141 nop->sec = special_alt->new_sec; in handle_group_alt()
1142 nop->offset = special_alt->new_off + special_alt->new_len; in handle_group_alt()
1143 nop->len = special_alt->orig_len - special_alt->new_len; in handle_group_alt()
1150 if (!special_alt->new_len) { in handle_group_alt()
1159 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
1178 !arch_support_alt_relocation(special_alt, insn, alt_reloc)) { in handle_group_alt()
1192 if (dest_off == special_alt->new_off + special_alt->new_len) in handle_group_alt()
1204 special_alt->new_sec, special_alt->new_off); in handle_group_alt()
1224 struct special_alt *special_alt, in handle_jump_alt() argument
1236 if (special_alt->key_addend & 2) { in handle_jump_alt()
1277 struct special_alt *special_alt, *tmp; in add_special_section_alts() local
1285 list_for_each_entry_safe(special_alt, tmp, &special_alts, list) { in add_special_section_alts()
1287 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
1288 special_alt->orig_off); in add_special_section_alts()
1291 special_alt->orig_sec, special_alt->orig_off); in add_special_section_alts()
1297 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
1298 new_insn = find_insn(file, special_alt->new_sec, in add_special_section_alts()
1299 special_alt->new_off); in add_special_section_alts()
1302 special_alt->new_sec, in add_special_section_alts()
1303 special_alt->new_off); in add_special_section_alts()
1309 if (special_alt->group) { in add_special_section_alts()
1310 if (!special_alt->orig_len) { in add_special_section_alts()
1316 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
1320 } else if (special_alt->jump_or_nop) { in add_special_section_alts()
1321 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
1335 alt->skip_orig = special_alt->skip_orig; in add_special_section_alts()
1336 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
1339 list_del(&special_alt->list); in add_special_section_alts()
1340 free(special_alt); in add_special_section_alts()