Lines Matching refs:mod
32 dwfl_module_getelf (Dwfl_Module *mod, GElf_Addr *loadbase) in dwfl_module_getelf() argument
34 if (mod == NULL) in dwfl_module_getelf()
37 __libdwfl_getelf (mod); in dwfl_module_getelf()
38 if (mod->elferr == DWFL_E_NOERROR) in dwfl_module_getelf()
40 if (mod->e_type == ET_REL && ! mod->main.relocated) in dwfl_module_getelf()
45 mod->main.relocated = true; in dwfl_module_getelf()
46 if (likely (__libdwfl_module_getebl (mod) == DWFL_E_NOERROR)) in dwfl_module_getelf()
48 (void) __libdwfl_relocate (mod, mod->main.elf, false); in dwfl_module_getelf()
50 if (mod->debug.elf == mod->main.elf) in dwfl_module_getelf()
51 mod->debug.relocated = true; in dwfl_module_getelf()
52 else if (mod->debug.elf != NULL && ! mod->debug.relocated) in dwfl_module_getelf()
54 mod->debug.relocated = true; in dwfl_module_getelf()
55 (void) __libdwfl_relocate (mod, mod->debug.elf, false); in dwfl_module_getelf()
60 *loadbase = dwfl_adjusted_address (mod, 0); in dwfl_module_getelf()
61 return mod->main.elf; in dwfl_module_getelf()
64 __libdwfl_seterrno (mod->elferr); in dwfl_module_getelf()