• Home
  • Raw
  • Download

Lines Matching refs:refs

44   } refs[0];  member
85 struct secref *refs = NULL; in cache_sections() local
140 newref->next = refs; in cache_sections()
141 refs = newref; in cache_sections()
155 for (struct secref *sec = refs; sec != NULL; sec = sec->next) in cache_sections()
168 mod->reloc_info = malloc (offsetof (struct dwfl_relocation, refs[nrefs])); in cache_sections()
176 for (size_t i = nrefs; i-- > 0; refs = refs->next) in cache_sections()
177 sortrefs[i] = refs; in cache_sections()
178 assert (refs == NULL); in cache_sections()
185 mod->reloc_info->refs[i].name = sortrefs[i]->name; in cache_sections()
186 mod->reloc_info->refs[i].scn = sortrefs[i]->scn; in cache_sections()
187 mod->reloc_info->refs[i].relocs = sortrefs[i]->relocs; in cache_sections()
188 mod->reloc_info->refs[i].start = sortrefs[i]->start; in cache_sections()
189 mod->reloc_info->refs[i].end = sortrefs[i]->end; in cache_sections()
215 if (mod->reloc_info->refs[i].scn == tscn) in cache_sections()
217 mod->reloc_info->refs[i].relocs = scn; in cache_sections()
225 while (refs != NULL) in cache_sections()
227 struct secref *ref = refs; in cache_sections()
228 refs = ref->next; in cache_sections()
290 *shndxp = elf_ndxscn (sections->refs[idx].scn); in dwfl_module_relocation_info()
292 return sections->refs[idx].name; in dwfl_module_relocation_info()
343 if (*addr < sections->refs[idx].start) in find_section()
345 else if (*addr > sections->refs[idx].end) in find_section()
352 if (*addr == sections->refs[idx].end in find_section()
354 && *addr == sections->refs[idx + 1].start) in find_section()
357 *addr -= sections->refs[idx].start; in find_section()
374 return elf_ndxscn (mod->reloc_info->refs[idx].scn); in __libdwfl_find_section_ndx()
414 if (mod->reloc_info->refs[idx].relocs != NULL) in INTDEF()
418 Elf_Scn *tscn = mod->reloc_info->refs[idx].scn; in INTDEF()
419 Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs; in INTDEF()
423 mod->reloc_info->refs[idx].relocs = NULL; in INTDEF()
432 return mod->reloc_info->refs[idx].scn; in INTDEF()