Lines Matching refs:mod
36 dwfl_module_getelf (Dwfl_Module *mod, GElf_Addr *loadbase) in dwfl_module_getelf() argument
38 if (mod == NULL) in dwfl_module_getelf()
41 __libdwfl_getelf (mod); in dwfl_module_getelf()
42 if (mod->elferr == DWFL_E_NOERROR) in dwfl_module_getelf()
44 if (mod->e_type == ET_REL && ! mod->main.relocated) in dwfl_module_getelf()
49 mod->main.relocated = true; in dwfl_module_getelf()
50 if (likely (__libdwfl_module_getebl (mod) == DWFL_E_NOERROR)) in dwfl_module_getelf()
52 (void) __libdwfl_relocate (mod, mod->main.elf, false); in dwfl_module_getelf()
54 if (mod->debug.elf == mod->main.elf) in dwfl_module_getelf()
55 mod->debug.relocated = true; in dwfl_module_getelf()
56 else if (mod->debug.elf != NULL && ! mod->debug.relocated) in dwfl_module_getelf()
58 mod->debug.relocated = true; in dwfl_module_getelf()
59 (void) __libdwfl_relocate (mod, mod->debug.elf, false); in dwfl_module_getelf()
64 *loadbase = dwfl_adjusted_address (mod, 0); in dwfl_module_getelf()
65 return mod->main.elf; in dwfl_module_getelf()
68 __libdwfl_seterrno (mod->elferr); in dwfl_module_getelf()