• Home
  • Raw
  • Download

Lines Matching full:refs

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