Lines Matching full:alt
54 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument
67 struct special_alt *alt) in get_alt_entry() argument
74 alt->group = entry->group; in get_alt_entry()
75 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry()
77 if (alt->group) { in get_alt_entry()
78 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
80 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
89 arch_handle_alternative(feature, alt); in get_alt_entry()
98 reloc_to_sec_off(orig_reloc, &alt->orig_sec, &alt->orig_off); in get_alt_entry()
100 if (!entry->group || alt->new_len) { in get_alt_entry()
108 reloc_to_sec_off(new_reloc, &alt->new_sec, &alt->new_off); in get_alt_entry()
111 if (alt->new_off >= 0x7ffffff0) in get_alt_entry()
112 alt->new_off -= 0x7ffffff0; in get_alt_entry()
128 struct special_alt *alt; in special_get_alts() local
147 alt = malloc(sizeof(*alt)); in special_get_alts()
148 if (!alt) { in special_get_alts()
152 memset(alt, 0, sizeof(*alt)); in special_get_alts()
154 ret = get_alt_entry(elf, entry, sec, idx, alt); in special_get_alts()
160 list_add_tail(&alt->list, alts); in special_get_alts()