diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-05-14 21:20:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-05-14 21:20:42 (GMT) |
commit | 83a9ca90e691614dd99d06b8391de216fc8ce727 (patch) | |
tree | a6e2f1f8189e4d808d2072fb202e9a1dc8c38043 /src/format | |
parent | 25aaa3ac8bd429e93cd1b04f905151b4be25c207 (diff) |
Processed all the routines using the symbol list.
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/symbol.c | 3 |
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; } |