Lines Matching refs:mod
302 Dwfl_Module *mod; /* Pointer back to containing module. */
336 dwfl_adjusted_address (Dwfl_Module *mod, GElf_Addr addr)
338 return addr + mod->main_bias;
342 dwfl_deadjust_address (Dwfl_Module *mod, GElf_Addr addr)
344 return addr - mod->main_bias;
348 dwfl_adjusted_dwarf_addr (Dwfl_Module *mod, Dwarf_Addr addr)
350 return dwfl_adjusted_address (mod, (addr
351 - mod->debug.address_sync
352 + mod->main.address_sync));
356 dwfl_deadjust_dwarf_addr (Dwfl_Module *mod, Dwarf_Addr addr)
358 return (dwfl_deadjust_address (mod, addr)
359 - mod->main.address_sync
360 + mod->debug.address_sync);
364 dwfl_adjusted_aux_sym_addr (Dwfl_Module *mod, Dwarf_Addr addr)
366 return dwfl_adjusted_address (mod, (addr
367 - mod->aux_sym.address_sync
368 + mod->main.address_sync));
372 dwfl_deadjust_aux_sym_addr (Dwfl_Module *mod, Dwarf_Addr addr)
374 return (dwfl_deadjust_address (mod, addr)
375 - mod->main.address_sync
376 + mod->aux_sym.address_sync);
380 dwfl_adjusted_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr)
382 if (symelf == mod->main.elf)
383 return dwfl_adjusted_address (mod, addr);
384 if (symelf == mod->debug.elf)
385 return dwfl_adjusted_dwarf_addr (mod, addr);
386 return dwfl_adjusted_aux_sym_addr (mod, addr);
390 dwfl_deadjust_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr)
392 if (symelf == mod->main.elf)
393 return dwfl_deadjust_address (mod, addr);
394 if (symelf == mod->debug.elf)
395 return dwfl_deadjust_dwarf_addr (mod, addr);
396 return dwfl_deadjust_aux_sym_addr (mod, addr);
449 extern const char *__libdwfl_getsym (Dwfl_Module *mod, int ndx, GElf_Sym *sym,
458 extern const char *__libdwfl_addrsym (Dwfl_Module *mod, GElf_Addr addr,
464 extern void __libdwfl_module_free (Dwfl_Module *mod) internal_function;
466 /* Find the main ELF file, update MOD->elferr and/or MOD->main.elf. */
467 extern void __libdwfl_getelf (Dwfl_Module *mod) internal_function;
476 extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug)
479 /* Find the section index in mod->main.elf that contains the given
482 extern size_t __libdwfl_find_section_ndx (Dwfl_Module *mod, Dwarf_Addr *addr)
487 extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
493 MOD->dwfl->callbacks->section_address is called to determine the actual
495 extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf,
501 /* Ensure that MOD->ebl is set up. */
502 extern Dwfl_Error __libdwfl_module_getebl (Dwfl_Module *mod) internal_function;
504 /* Install a new Dwarf_CFI in *SLOT (MOD->eh_cfi or MOD->dwarf_cfi). */
505 extern Dwarf_CFI *__libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot,
512 extern Dwfl_Error __libdwfl_nextcu (Dwfl_Module *mod, struct dwfl_cu *lastcu,
516 extern Dwfl_Error __libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr,
524 its vaddr in ELF to BUILD_ID_VADDR (it is unrelocated, even if MOD is not
526 stored and 0 if no note is found. MOD may be NULL, MOD must be non-NULL
528 extern int __libdwfl_find_elf_build_id (Dwfl_Module *mod, Elf *elf,
535 in MOD and return its length. If SET is false, instead compare it
536 to that stored in MOD and return 2 if they match, 1 if they do not.
538 extern int __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf)
542 extern int __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug,
546 extern int __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug,
643 typedef bool Dwfl_Module_Callback (Dwfl_Module *mod, void **userdata,
767 #define MODCB_ARGS(mod) (mod), &(mod)->userdata, (mod)->name, (mod)->low_addr