From b34b1d85259a9fb1d111b879722769c807463678 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Thu, 1 Apr 2010 22:58:18 +0000 Subject: 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 --- src/common/linux/dump_symbols.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/linux/dump_symbols.cc') 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); -- cgit v1.2.1