Lines Matching defs:mod
45 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx,
72 if ((*mod->dwfl->callbacks->section_address) (MODCB_ARGS (mod),
92 *value += dwfl_adjusted_address (mod, refshdr->sh_addr);
115 relocate_getsym (Dwfl_Module *mod,
121 if (mod->symfile == NULL || mod->symfile->elf != relocated)
167 if (unlikely (mod->symfile == NULL)
168 && unlikely (INTUSE(dwfl_module_getsymtab) (mod) < 0))
175 cache->symelf = mod->symfile->elf;
176 cache->symdata = mod->symdata;
177 cache->symxndxdata = mod->symxndxdata;
178 cache->symstrdata = mod->symstrdata;
200 return __libdwfl_relocate_value (mod, cache->symelf, &cache->symshstrndx,
323 relocate (Dwfl_Module * const mod,
345 Elf_Type type = ebl_reloc_simple_type (mod->ebl, rtype, &addsub);
364 Dwfl_Error error = relocate_getsym (mod, relocated, reloc_symtab,
372 error = resolve_symbol (mod, reloc_symtab, &sym, shndx);
488 Dwfl_Module *mod,
494 if (ebl_get_elfmachine (mod->ebl) == EM_NONE)
502 relocate_section (Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr,
518 if (debugscn && ! ebl_debugscn_p (mod->ebl, tname))
636 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
640 check_badreltype (&first_badreltype, mod, &result);
667 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
671 check_badreltype (&first_badreltype, mod, &result);
751 __libdwfl_relocate (Dwfl_Module *mod, Elf *debugfile, bool debug)
753 assert (mod->e_type == ET_REL);
787 result = relocate_section (mod, debugfile, ehdr, d_shstrndx,
798 __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
810 Dwfl_Error result = __libdwfl_module_getebl (mod);
822 return relocate_section (mod, relocated, ehdr, shstrndx, &reloc_symtab,