mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 06:54:14 +01:00
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
This commit is contained in:
parent
2a18f064ce
commit
b34b1d8525
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user