Lines Matching refs:alt
57 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument
70 struct special_alt *alt) in get_alt_entry() argument
77 alt->group = entry->group; in get_alt_entry()
78 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry()
80 if (alt->group) { in get_alt_entry()
81 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
83 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
93 arch_handle_alternative(feature, alt); in get_alt_entry()
102 reloc_to_sec_off(orig_reloc, &alt->orig_sec, &alt->orig_off); in get_alt_entry()
104 if (!entry->group || alt->new_len) { in get_alt_entry()
112 reloc_to_sec_off(new_reloc, &alt->new_sec, &alt->new_off); in get_alt_entry()
115 if (alt->new_off >= 0x7ffffff0) in get_alt_entry()
116 alt->new_off -= 0x7ffffff0; in get_alt_entry()
128 alt->key_addend = key_reloc->addend; in get_alt_entry()
144 struct special_alt *alt; in special_get_alts() local
163 alt = malloc(sizeof(*alt)); in special_get_alts()
164 if (!alt) { in special_get_alts()
168 memset(alt, 0, sizeof(*alt)); in special_get_alts()
170 ret = get_alt_entry(elf, entry, sec, idx, alt); in special_get_alts()
176 list_add_tail(&alt->list, alts); in special_get_alts()