From 49e34da0845cf50fdffa955ed6620b8e97b92872 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 19 Feb 2009 14:50:05 +0100 Subject: Ignore symbols before module base address. --- ChangeLog | 5 +++++ translate.cxx | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 431fabed..315265a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-19 Mark Wielaard + + * translate.cxx (dump_unwindsyms): Ignore symbols before module + base address. + 2009-02-18 Frank Ch. Eigler PR9719. diff --git a/translate.cxx b/translate.cxx index 31f2043f..e87e9876 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4544,6 +4544,12 @@ dump_unwindsyms (Dwfl_Module *m, Dwarf_Addr sym_addr = sym.st_value; const char *secname = NULL; + // Symbol addresses before the base address of the module + // are suspect. Older kernels had those for some vsdo + // symbols. They mess up our logic, ignore them. + if (sym_addr < base) + continue; + if (n > 0) // only try to relocate if there exist relocation bases { int ki = dwfl_module_relocate_address (m, &sym_addr); -- cgit