diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-09-11 22:25:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-09-11 22:25:26 (GMT) |
commit | ab1489b6a6ef1f09957f6f805f143fceb42f6a08 (patch) | |
tree | fd751d69dfde0539e9beb79cf33377572a3c36a2 /src/format/exe_format.c | |
parent | 15387adcbd3e27fe581754c0ee56edc64272d58e (diff) |
Provided capabilities to resolve symbols for given addresses.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@29 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/exe_format.c')
-rw-r--r-- | src/format/exe_format.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/format/exe_format.c b/src/format/exe_format.c index 5cbaba5..1481d22 100644 --- a/src/format/exe_format.c +++ b/src/format/exe_format.c @@ -73,3 +73,25 @@ size_t get_exe_symbols(const exe_format *format, char ***labels, SymbolType **ty return format->get_symbols(format, labels, types, offsets); } + + +/****************************************************************************** +* * +* Paramètres : format = informations chargées à consulter. * +* label = étiquette du symbole si trouvé. [OUT] * +* type = type du symbole trouvé. [OUT] * +* offset = adresse à cibler, puis décallage final. [OUT] * +* * +* Description : Recherche le symbole correspondant à une adresse. * +* * +* Retour : true si l'opération a été un succès, false sinon. * +* * +* Remarques : - * +* * +******************************************************************************/ + +bool resolve_exe_symbol(const exe_format *format, char **label, SymbolType *type, uint64_t *offset) +{ + return format->resolve_symbol(format, label, type, offset); + +} |