Lines Matching defs:idx
259 dwfl_module_relocation_info (Dwfl_Module *mod, unsigned int idx,
271 if (idx != 0)
286 if (idx >= sections->count)
290 *shndxp = elf_ndxscn (sections->refs[idx].scn);
292 return sections->refs[idx].name;
342 size_t idx = (l + u) / 2;
343 if (*addr < sections->refs[idx].start)
344 u = idx;
345 else if (*addr > sections->refs[idx].end)
346 l = idx + 1;
352 if (*addr == sections->refs[idx].end
353 && idx + 1 < sections->count
354 && *addr == sections->refs[idx + 1].start)
355 ++idx;
357 *addr -= sections->refs[idx].start;
358 return idx;
370 int idx = find_section (mod, addr);
371 if (unlikely (idx == -1))
374 return elf_ndxscn (mod->reloc_info->refs[idx].scn);
410 int idx = find_section (mod, address);
411 if (idx < 0)
414 if (mod->reloc_info->refs[idx].relocs != NULL)
418 Elf_Scn *tscn = mod->reloc_info->refs[idx].scn;
419 Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs;
423 mod->reloc_info->refs[idx].relocs = NULL;
432 return mod->reloc_info->refs[idx].scn;