Lines Matching defs:mod
206 Dwfl_Module *mod;
207 (void) INTUSE(dwfl_addrsegment) (dwfl, vaddr, &mod);
208 if (mod == NULL)
212 Elf_Scn *scn = INTUSE(dwfl_module_address_section) (mod, &vaddr, &bias);
218 if (likely (mod->e_type != ET_REL) && mod->main.elf != NULL)
221 vaddr - mod->main.bias, minread, mod->main.elf);
378 Dwfl_Module *mod;
379 int segndx = INTUSE(dwfl_addrsegment) (dwfl, l_ld, &mod);
383 if (mod != NULL)
386 if (name != NULL && mod->name[0] == '[')
391 free (mod->name);
392 mod->name = newname;
396 if (name == NULL && mod->name[0] == '/')
397 name = mod->name;
404 && mod->main.elf == NULL
405 && mod->main.name == NULL)
406 mod->main.name = strdup (name);
414 mod = INTUSE(dwfl_report_elf) (dwfl, basename (name),
418 if (mod != NULL)
424 if (mod->next != NULL)
426 if (*lastmodp != mod)
429 while (*lastmodp != mod)
432 *lastmodp = mod->next;
433 mod->next = NULL;
436 *lastmodp = mod;
439 lastmodp = &mod->next;
448 consider_executable (Dwfl_Module *mod, GElf_Addr at_phdr, GElf_Addr at_entry,
454 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
465 if (mod->e_type == ET_EXEC)
479 GElf_Xword align = mod->dwfl->segment_align;
484 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
498 if (mod->e_type == ET_EXEC)
523 if (bias != mod->main.bias)
525 mod->low_addr -= mod->main.bias;
526 mod->high_addr -= mod->main.bias;
527 mod->main.bias = bias;
528 mod->low_addr += bias;
529 mod->high_addr += bias;
531 free (mod->dwfl->lookup_module);
532 mod->dwfl->lookup_module = NULL;
539 Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset,
543 const size_t entsize = gelf_fsize (mod->main.elf,
562 d_val_vaddr += mod->main.bias;
568 int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, &m);
569 assert (m == mod);
571 if ((*memory_callback) (mod->dwfl, segndx,
590 (*memory_callback) (mod->dwfl, -1, &buffer, &buffer_available, 0, 0,
618 for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next)
619 if (mod->main.elf != NULL)
621 GElf_Addr r_debug_vaddr = consider_executable (mod, at_phdr, at_entry,