summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-14 21:20:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-14 21:20:42 (GMT)
commit83a9ca90e691614dd99d06b8391de216fc8ce727 (patch)
treea6e2f1f8189e4d808d2072fb202e9a1dc8c38043 /src/format
parent25aaa3ac8bd429e93cd1b04f905151b4be25c207 (diff)
Processed all the routines using the symbol list.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/symbol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 2611a40..ba0c327 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -500,6 +500,9 @@ GBinRoutine *g_binary_symbol_get_routine(const GBinSymbol *symbol)
/* TODO : ref() */
+ if (symbol->type != STP_ROUTINE && symbol->type != STP_ENTRY_POINT)
+ return NULL;
+
return symbol->extra.routine;
}