From 1bc52902eb37950a4e49ba67a80baa30b105ab4d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 29 Jan 2018 01:26:51 -0800 Subject: [PATCH] kernel-symbols: avoid symbols not in text (code) section Those are defind as t or T type. --- lib/symbols/sp-kernel-symbol.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/symbols/sp-kernel-symbol.c b/lib/symbols/sp-kernel-symbol.c index 94032770..db8c1476 100644 --- a/lib/symbols/sp-kernel-symbol.c +++ b/lib/symbols/sp-kernel-symbol.c @@ -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); }