diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-01-25 01:12:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-01-25 01:12:54 (GMT) |
commit | 0993276d6450919c6d178182c5fd26497b62d5fc (patch) | |
tree | 5b069eb20ce7360ef6c8d4d55b8a0ab000eb70c2 /src/format | |
parent | 141d2f0fbb2ce3b4ddf85383c55b891fd59dc598 (diff) |
Added a fixed address for the start of the '.plt' section and improved the disassembly process.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@460 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/symbol.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c index 3a909b4..5e66c54 100644 --- a/src/format/symbol.c +++ b/src/format/symbol.c @@ -221,10 +221,17 @@ const char *g_binary_symbol_to_string(const GBinSymbol *symbol) { const char *result; /* Désignation à retourner */ - if (symbol->extra.routine != NULL) - result = g_binary_routine_get_name(symbol->extra.routine); + switch (symbol->type) + { + case STP_ROUTINE: + result = g_binary_routine_get_name(symbol->extra.routine); + break; - else result = (symbol->alt != NULL ? symbol->alt : symbol->name); + default: + result = (symbol->alt != NULL ? symbol->alt : symbol->name); + break; + + } return result; |