diff options
Diffstat (limited to 'libdwfl/libdwfl.h')
| -rw-r--r-- | libdwfl/libdwfl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index c36f9206..ee1b5054 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -346,6 +346,15 @@ extern const char *dwfl_module_addrsym (Dwfl_Module *mod, GElf_Addr address, GElf_Sym *sym, GElf_Word *shndxp) __nonnull_attribute__ (3); +/* Find the ELF section that *ADDRESS lies inside and return it. + On success, adjusts *ADDRESS to be relative to the section, + and sets *BIAS to the difference between addresses used in + the returned section's headers and run-time addresses. */ +extern Elf_Scn *dwfl_module_address_section (Dwfl_Module *mod, + Dwarf_Addr *address, + Dwarf_Addr *bias) + __nonnull_attribute__ (2, 3); + /*** Dwarf access functions ***/ |
