Lines Matching full:alt
54 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument
60 struct special_alt *alt) in get_alt_entry() argument
67 alt->group = entry->group; in get_alt_entry()
68 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry()
70 if (alt->group) { in get_alt_entry()
71 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
73 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
82 arch_handle_alternative(feature, alt); in get_alt_entry()
96 alt->orig_sec = orig_reloc->sym->sec; in get_alt_entry()
97 alt->orig_off = orig_reloc->addend; in get_alt_entry()
99 if (!entry->group || alt->new_len) { in get_alt_entry()
107 alt->new_sec = new_reloc->sym->sec; in get_alt_entry()
108 alt->new_off = (unsigned int)new_reloc->addend; 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()
158 list_add_tail(&alt->list, alts); in special_get_alts()