Lines Matching refs:entry
81 static int get_alt_entry(struct elf *elf, struct special_entry *entry, in get_alt_entry() argument
88 offset = idx * entry->size; in get_alt_entry()
90 alt->group = entry->group; in get_alt_entry()
91 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry()
95 entry->orig_len); in get_alt_entry()
97 entry->new_len); in get_alt_entry()
100 if (entry->feature) { in get_alt_entry()
104 entry->feature); in get_alt_entry()
115 orig_rela = find_rela_by_dest(sec, offset + entry->orig); in get_alt_entry()
117 WARN_FUNC("can't find orig rela", sec, offset + entry->orig); in get_alt_entry()
122 sec, offset + entry->orig, orig_rela->sym->name); in get_alt_entry()
129 if (!entry->group || alt->new_len) { in get_alt_entry()
130 new_rela = find_rela_by_dest(sec, offset + entry->new); in get_alt_entry()
133 sec, offset + entry->new); in get_alt_entry()
155 struct special_entry *entry; in special_get_alts() local
163 for (entry = entries; entry->sec; entry++) { in special_get_alts()
164 sec = find_section_by_name(elf, entry->sec); in special_get_alts()
168 if (sec->len % entry->size != 0) { in special_get_alts()
170 sec->name, entry->size); in special_get_alts()
174 nr_entries = sec->len / entry->size; in special_get_alts()
184 ret = get_alt_entry(elf, entry, sec, idx, alt); in special_get_alts()