diff options
author | jimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-01 22:58:18 +0000 |
---|---|---|
committer | jimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-01 22:58:18 +0000 |
commit | b34b1d85259a9fb1d111b879722769c807463678 (patch) | |
tree | e899e6d99f3a7c42bb30461baea375217776d336 /src/common/linux | |
parent | Breakpad Linux dumper: Generate make dependencies on header files automatically. (diff) | |
download | breakpad-b34b1d85259a9fb1d111b879722769c807463678.tar.xz |
Breakpad Linux dumper: Use the correct section's base address.
In order to dump call frame information held in .eh_frame sections, the
dumper needs to know the proper base address to use for pointers encoded
using the DW_EH_PE_textrel encoding. This should be the start of the .text
section. However, due to a cut-and-paste typo, the dumper was supplying the
base address of the ".got" section instead.
a=jimblandy, r=nealsid
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@564 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/linux')
-rw-r--r-- | src/common/linux/dump_symbols.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc index c2ed724c..eecacd59 100644 --- a/src/common/linux/dump_symbols.cc +++ b/src/common/linux/dump_symbols.cc @@ -334,7 +334,7 @@ static bool LoadDwarfCFI(const string &dwarf_filename, if (got_section) byte_reader.SetDataBase(got_section->sh_addr); if (text_section) - byte_reader.SetTextBase(got_section->sh_addr); + byte_reader.SetTextBase(text_section->sh_addr); dwarf2reader::CallFrameInfo::Reporter dwarf_reporter(dwarf_filename, section_name); |