Skip to content

Commit

Permalink
Issue SimonKagstrom#187: elf-parser: Setup sections before DWARF parsing
Browse files Browse the repository at this point in the history
Otherwise address verification won't work.
  • Loading branch information
SimonKagstrom committed Feb 26, 2017
1 parent 87af0b5 commit 240f289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/elf-parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ class ElfInstance : public IFileParser, IFileParser::ILineListener

parseOneElf();

setupSections();

// Gcov data?
if (IConfiguration::getInstance().keyAsInt("gcov") && !m_gcnoFiles.empty())
parseGcnoFiles(relocation);
else
parseOneDwarf(relocation);

setupSections();

return true;
}

Expand Down

0 comments on commit 240f289

Please sign in to comment.