diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-10-12 20:54:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-10-12 20:54:54 (GMT) |
commit | 43f740ee35b452980e8d190660896a535816dfc3 (patch) | |
tree | 8ed84ae291950efd4d37a1dd553e3caac4290fc9 /src/format/exe_format-int.h | |
parent | c1b34ed255813ad28bf69fc28592d4cd253f7248 (diff) |
Provided default code parts to analyze.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@34 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/exe_format-int.h')
-rw-r--r-- | src/format/exe_format-int.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/format/exe_format-int.h b/src/format/exe_format-int.h index d1f9381..4dcf1c4 100644 --- a/src/format/exe_format-int.h +++ b/src/format/exe_format-int.h @@ -29,6 +29,28 @@ +/* ------------------------ MANIPULATION DES PARTIES DE CODE ------------------------ */ + + +/* Description d'une partie binaire */ +struct _bin_part +{ + char *name; /* Désignation humaine */ + + off_t offset; /* Position physique */ + off_t size; /* Taille de la partie */ + uint64_t voffset; /* Adresse virtuelle éventuelle*/ + +}; + + + + + + +/* Fournit les références aux zones de code à analyser. */ +typedef bin_part ** (* get_def_parts_fc) (const exe_format *, size_t *); + /* Recherche une section donnée au sein de binaire. */ typedef bool (* find_section_fc) (const exe_format *, const char *, off_t *, off_t *, uint64_t *); @@ -46,6 +68,7 @@ struct _exe_format const uint8_t *content; /* Contenu binaire à étudier */ off_t length; /* Taille de ce contenu */ + get_def_parts_fc get_def_parts; /* Liste des parties de code */ find_section_fc find_section; /* Recherche d'une section */ get_symbols_fc get_symbols; /* Liste des symboles présents */ resolve_symbol_fc resolve_symbol; /* Recherche de symboles */ |