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