kernel-symbols: avoid symbols not in text (code) section

Those are defind as t or T type.
This commit is contained in:
Christian Hergert
2018-01-29 01:26:51 -08:00
parent 8fb46f3e7f
commit 1bc52902eb

View File

@ -81,6 +81,10 @@ is_ignored (GHashTable *skip,
const gchar *name,
guint8 type)
{
/* Only allow symbols in the text (code) section */
if (type != 't' && type != 'T')
return TRUE;
return g_hash_table_contains (skip, name);
}