Home | History | Annotate | Download | only in libdwfl

Lines Matching defs:refs

61   } refs[0];
96 struct secref *refs = NULL;
142 newref->next = refs;
143 refs = newref;
157 for (struct secref *sec = refs; sec != NULL; sec = sec->next)
170 mod->reloc_info = malloc (offsetof (struct dwfl_relocation, refs[nrefs]));
178 for (size_t i = nrefs; i-- > 0; refs = refs->next)
179 sortrefs[i] = refs;
180 assert (refs == NULL);
187 mod->reloc_info->refs[i].name = sortrefs[i]->name;
188 mod->reloc_info->refs[i].scn = sortrefs[i]->scn;
189 mod->reloc_info->refs[i].relocs = sortrefs[i]->relocs;
190 mod->reloc_info->refs[i].start = sortrefs[i]->start;
191 mod->reloc_info->refs[i].end = sortrefs[i]->end;
214 if (mod->reloc_info->refs[i].scn == tscn)
216 mod->reloc_info->refs[i].relocs = scn;
281 *shndxp = elf_ndxscn (sections->refs[idx].scn);
283 return sections->refs[idx].name;
317 /* Find the index in MOD->reloc_info.refs containing *ADDR. */
331 if (*addr < sections->refs[idx].start)
333 else if (*addr > sections->refs[idx].end)
340 if (*addr == sections->refs[idx].end
342 && *addr == sections->refs[idx + 1].start)
345 *addr -= sections->refs[idx].start;
391 if (mod->reloc_info->refs[idx].relocs != NULL)
395 Elf_Scn *tscn = mod->reloc_info->refs[idx].scn;
396 Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs;
400 mod->reloc_info->refs[idx].relocs = NULL;
409 return mod->reloc_info->refs[idx].scn;