Lines Matching refs:sec
21 const char *sec; member
31 .sec = ".altinstructions",
41 .sec = "__jump_table",
49 .sec = "__ex_table",
61 static void reloc_to_sec_off(struct reloc *reloc, struct section **sec, in reloc_to_sec_off() argument
64 *sec = reloc->sym->sec; in reloc_to_sec_off()
69 struct section *sec, int idx, in get_alt_entry() argument
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()
90 feature = bswap_if_needed(*(unsigned short *)(sec->data->d_buf + in get_alt_entry()
96 orig_reloc = find_reloc_by_dest(elf, sec, offset + entry->orig); in get_alt_entry()
98 WARN_FUNC("can't find orig reloc", sec, offset + entry->orig); in get_alt_entry()
105 new_reloc = find_reloc_by_dest(elf, sec, offset + entry->new); in get_alt_entry()
108 sec, offset + entry->new); in get_alt_entry()
122 key_reloc = find_reloc_by_dest(elf, sec, offset + entry->key); in get_alt_entry()
125 sec, offset + entry->key); in get_alt_entry()
142 struct section *sec; in special_get_alts() local
149 for (entry = entries; entry->sec; entry++) { in special_get_alts()
150 sec = find_section_by_name(elf, entry->sec); in special_get_alts()
151 if (!sec) in special_get_alts()
154 if (sec->sh.sh_size % entry->size != 0) { in special_get_alts()
156 sec->name, entry->size); in special_get_alts()
160 nr_entries = sec->sh.sh_size / entry->size; in special_get_alts()
170 ret = get_alt_entry(elf, entry, sec, idx, alt); in special_get_alts()