diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-01-18 09:13:30 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-01-18 09:20:25 +0100 |
commit | 08d1d520616557f6ff7dd023e260ad6577e9e0e8 (patch) | |
tree | f9c9efe542ca78826caedb6f8981fa73336552d5 /dwflpp.h | |
parent | 27ca40f711f4ab4b0234390443e63b7916a61551 (diff) | |
download | systemtap-steved-08d1d520616557f6ff7dd023e260ad6577e9e0e8.tar.gz systemtap-steved-08d1d520616557f6ff7dd023e260ad6577e9e0e8.tar.xz systemtap-steved-08d1d520616557f6ff7dd023e260ad6577e9e0e8.zip |
PR11173 Markers get a bad address in prelinked libraries.
Our literal_addr_to_sym_addr() function was just wrong. To compensate for
raw addresses read from elf (either given by the user or through a mark
transformation) we need to know what the elf_bias is (as returned by
dwfl_module_getelf) before feeding them to any libdwfl functions.
* tapsets.cxx (query_module_dwarf): Always add elf_bias to raw function or
statement addresses before calling query_addr().
(query_addr): Don't call literal_addr_to_sym_addr().
* dwflpp.h (literal_addr_to_sym_addr): Removed.
* dwflpp.cxx (literal_addr_to_sym_addr): Likewise.
Diffstat (limited to 'dwflpp.h')
-rw-r--r-- | dwflpp.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -284,8 +284,6 @@ struct dwflpp Dwarf_Addr relocate_address(Dwarf_Addr addr, std::string& reloc_section); - Dwarf_Addr literal_addr_to_sym_addr(Dwarf_Addr lit_addr); - private: DwflPtr dwfl_ptr; |