Lines Matching refs:mod
183 Dwfl_Module *mod;
184 (void) INTUSE(dwfl_addrsegment) (dwfl, vaddr, &mod);
185 if (mod == NULL)
189 Elf_Scn *scn = INTUSE(dwfl_module_address_section) (mod, &vaddr, &bias);
195 if (likely (mod->e_type != ET_REL) && mod->main.elf != NULL)
198 vaddr - mod->main.bias, minread, mod->main.elf);
393 Dwfl_Module *mod = NULL;
453 mod = __libdwfl_report_elf (dwfl, basename (name),
456 if (mod != NULL)
482 if (mod != NULL)
488 if (mod->next != NULL)
490 if (*lastmodp != mod)
493 while (*lastmodp != mod)
496 *lastmodp = mod->next;
497 mod->next = NULL;
500 *lastmodp = mod;
503 lastmodp = &mod->next;
512 consider_executable (Dwfl_Module *mod, GElf_Addr at_phdr, GElf_Addr at_entry,
518 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
529 if (mod->e_type == ET_EXEC)
543 GElf_Xword align = mod->dwfl->segment_align;
546 if (elf_getphdrnum (mod->main.elf, &phnum) != 0)
552 GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
566 if (mod->e_type == ET_EXEC)
591 GElf_Addr mod_bias = dwfl_adjusted_address (mod, 0);
594 mod->low_addr -= mod_bias;
595 mod->high_addr -= mod_bias;
596 mod->low_addr += bias;
597 mod->high_addr += bias;
599 free (mod->dwfl->lookup_module);
600 mod->dwfl->lookup_module = NULL;
607 Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset,
611 const size_t entsize = gelf_fsize (mod->main.elf,
630 d_val_vaddr = dwfl_adjusted_address (mod, d_val_vaddr);
635 int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, NULL);
637 if ((*memory_callback) (mod->dwfl, segndx,
656 (*memory_callback) (mod->dwfl, -1, &buffer, &buffer_available, 0, 0,
683 for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next)
684 if (mod->main.elf != NULL)
686 GElf_Addr r_debug_vaddr = consider_executable (mod, at_phdr, at_entry,