Lines Matching refs:refs
40 } refs[0];
75 struct secref *refs = NULL;
130 newref->next = refs;
131 refs = newref;
145 for (struct secref *sec = refs; sec != NULL; sec = sec->next)
158 mod->reloc_info = malloc (offsetof (struct dwfl_relocation, refs[nrefs]));
166 for (size_t i = nrefs; i-- > 0; refs = refs->next)
167 sortrefs[i] = refs;
168 assert (refs == NULL);
175 mod->reloc_info->refs[i].name = sortrefs[i]->name;
176 mod->reloc_info->refs[i].scn = sortrefs[i]->scn;
177 mod->reloc_info->refs[i].relocs = sortrefs[i]->relocs;
178 mod->reloc_info->refs[i].start = sortrefs[i]->start;
179 mod->reloc_info->refs[i].end = sortrefs[i]->end;
205 if (mod->reloc_info->refs[i].scn == tscn)
207 mod->reloc_info->refs[i].relocs = scn;
215 while (refs != NULL)
217 struct secref *ref = refs;
218 refs = ref->next;
280 *shndxp = elf_ndxscn (sections->refs[idx].scn);
282 return sections->refs[idx].name;
319 /* Find the index in MOD->reloc_info.refs containing *ADDR. */
333 if (*addr < sections->refs[idx].start)
335 else if (*addr > sections->refs[idx].end)
342 if (*addr == sections->refs[idx].end
344 && *addr == sections->refs[idx + 1].start)
347 *addr -= sections->refs[idx].start;
364 return elf_ndxscn (mod->reloc_info->refs[idx].scn);
404 if (mod->reloc_info->refs[idx].relocs != NULL)
408 Elf_Scn *tscn = mod->reloc_info->refs[idx].scn;
409 Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs;
413 mod->reloc_info->refs[idx].relocs = NULL;
422 return mod->reloc_info->refs[idx].scn;