* dwflpp.cxx (vardie_from_symtable): Also accept STT_NOTYPE. Some global
don't have a type associated with them.
* testsuite/buildok/pr13284.stp: New testcase.
if (symname
&& ! strcmp (name, symname)
&& sym.st_shndx != SHN_UNDEF
- && GELF_ST_TYPE (sym.st_info) == STT_OBJECT)
+ && (GELF_ST_TYPE (sym.st_info) == STT_NOTYPE // PR13284
+ || GELF_ST_TYPE (sym.st_info) == STT_OBJECT))
*addr = sym.st_value;
}
--- /dev/null
+#! stap -p4
+
+# jiffies is a global that needs to be pulled from the symbol table.
+probe kernel.function("schedule_timeout") { println($jiffies) }