summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2009-05-28 22:23:45 +0530
committerAnanth N Mavinakayanahalli <ananth@in.ibm.com>2009-05-28 22:23:45 +0530
commit6967e65ee23bf767fc45f3e190302656c11ddaea (patch)
treedf616fa587b9c23d7a79e54e56510e1bbae7eb31 /translate.cxx
parent9b59029875a7e4d362834fe2d6017b74a044b2e6 (diff)
downloadsystemtap-steved-6967e65ee23bf767fc45f3e190302656c11ddaea.tar.gz
systemtap-steved-6967e65ee23bf767fc45f3e190302656c11ddaea.tar.xz
systemtap-steved-6967e65ee23bf767fc45f3e190302656c11ddaea.zip
PR10206: Include NOTYPE symbols in stap-symbols.h
On powerpc, function descriptors are in the .opd section as NO_TYPE. Include them in stap-symbols.h
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx
index 505c9fc6..9631213e 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4617,6 +4617,7 @@ dump_unwindsyms (Dwfl_Module *m,
// We omit symbols that have suspicious addresses (before base,
// or after end).
if ((GELF_ST_TYPE (sym.st_info) == STT_FUNC ||
+ GELF_ST_TYPE (sym.st_info) == STT_NOTYPE || // PR10206 ppc fn-desc are in .opd
GELF_ST_TYPE (sym.st_info) == STT_OBJECT) // PR10000: also need .data
&& !(sym.st_shndx == SHN_UNDEF // Value undefined,
|| shndxp == (GElf_Word) -1 // in a non-allocated section,