are found) for use with libelf. If successful, fills in *BIAS
with the difference between addresses within the loaded module
and those in symbol tables or Dwarf information referring to it. */
-extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias);
+extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
+ __nonnull_attribute__ (1, 2);
/* Return the number of symbols in the module's symbol table,
or -1 for errors. */
Dwfl_Module *mod = dwfl_report_elf (core_dwfl, "core", corefile, -1,
0 /* base */);
assert (mod != NULL);
- Elf *core = dwfl_module_getelf (mod, NULL);
+ GElf_Addr loadbase_ignore;
+ Elf *core = dwfl_module_getelf (mod, &loadbase_ignore);
assert (core != NULL);
int result = dwfl_core_file_report (dwfl, core);
assert (result >= 0);
Dwfl *dwfl = dwfl_offline ();
Dwfl_Module *mod = dwfl_report_elf (dwfl, "core", corefile, -1, 0 /* base */);
assert (mod != NULL);
- Elf *core = dwfl_module_getelf (mod, NULL);
+ GElf_Addr loadbase_ignore;
+ Elf *core = dwfl_module_getelf (mod, &loadbase_ignore);
assert (core != NULL);
GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (core, &ehdr_mem);
assert (ehdr != NULL);