summaryrefslogtreecommitdiff
path: root/src/format/executable-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r--src/format/executable-int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h
index ca8b7d5..e4b18a4 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 l'adresse virtuelle correspondant à une position. */
+typedef bool (* translate_off_fc) (const GExeFormat *, off_t, vmpa_t *);
+
@@ -53,6 +56,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 */
+
};
/* Format d'exécutable générique (classe) */