Lines Matching refs:mod
38 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx,
65 if ((*mod->dwfl->callbacks->section_address) (MODCB_ARGS (mod),
85 *value += dwfl_adjusted_address (mod, refshdr->sh_addr);
106 the symbol table in RELOCATED itself when it has one, not MOD->symfile. */
108 relocate_getsym (Dwfl_Module *mod,
114 if (mod->symfile == NULL || mod->symfile->elf != relocated)
160 if (unlikely (mod->symfile == NULL)
161 && unlikely (INTUSE(dwfl_module_getsymtab) (mod) < 0))
168 cache->symelf = mod->symfile->elf;
169 cache->symdata = mod->symdata;
170 cache->symxndxdata = mod->symxndxdata;
171 cache->symstrdata = mod->symstrdata;
193 return __libdwfl_relocate_value (mod, cache->symelf, &cache->symshstrndx,
316 relocate (Dwfl_Module * const mod,
337 Elf_Type type = ebl_reloc_simple_type (mod->ebl, rtype);
356 Dwfl_Error error = relocate_getsym (mod, relocated, reloc_symtab,
364 error = resolve_symbol (mod, reloc_symtab, &sym, shndx);
464 Dwfl_Module *mod,
470 if (ebl_get_elfmachine (mod->ebl) == EM_NONE)
478 relocate_section (Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr,
494 if (debugscn && ! ebl_debugscn_p (mod->ebl, tname))
597 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
601 check_badreltype (&first_badreltype, mod, &result);
627 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
631 check_badreltype (&first_badreltype, mod, &result);
702 __libdwfl_relocate (Dwfl_Module *mod, Elf *debugfile, bool debug)
704 assert (mod->e_type == ET_REL);
736 result = relocate_section (mod, debugfile, ehdr, d_shstrndx,
747 __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
759 return (__libdwfl_module_getebl (mod)
760 ?: relocate_section (mod, relocated,