diff options
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r-- | src/format/executable-int.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h index e4b18a4..224e193 100644 --- a/src/format/executable-int.h +++ b/src/format/executable-int.h @@ -41,6 +41,9 @@ typedef vmpa_t (* get_entry_point_fc) (const GExeFormat *); /* Fournit les références aux zones de code à analyser. */ typedef GBinPart ** (* get_parts_fc) (const GExeFormat *, size_t *); +/* Fournit la position correspondant à une adresse virtuelle. */ +typedef bool (* translate_addr_fc) (const GExeFormat *, vmpa_t, off_t *); + /* Fournit l'adresse virtuelle correspondant à une position. */ typedef bool (* translate_off_fc) (const GExeFormat *, off_t, vmpa_t *); @@ -56,7 +59,8 @@ struct _GExeFormat get_entry_point_fc get_entry_point; /* Obtention du point d'entrée */ get_parts_fc get_parts; /* Liste des parties binaires */ - translate_off_fc translate; /* Correspondance pos -> addr */ + translate_addr_fc translate_addr; /* Correspondance addr -> pos */ + translate_off_fc translate_off; /* Correspondance pos -> addr */ }; |