summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
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;
}