summaryrefslogtreecommitdiff
path: root/src/format/exe_format-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-05-11 23:42:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-05-11 23:42:48 (GMT)
commit96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (patch)
tree68e49f325de3e93ef186d3e078da8ddc473aedf7 /src/format/exe_format-int.h
parent80dc0ac97987ad9246bee7c47458a015339453bf (diff)
Reorganized the way the program is built again and added partial support for the JVM.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@63 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/exe_format-int.h')
-rw-r--r--src/format/exe_format-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/exe_format-int.h b/src/format/exe_format-int.h
index 3bba821..bb96ea5 100644
--- a/src/format/exe_format-int.h
+++ b/src/format/exe_format-int.h
@@ -51,6 +51,9 @@ struct _bin_part
/* Fournit l'adresse mémoire du point d'entrée du programme. */
typedef uint64_t (* get_entry_point_fc) (const exe_format *);
+/* Indique le type d'architecture visée par le format. */
+typedef FormatTargetMachine (* get_target_machine_fc) (const exe_format *);
+
/* Fournit les références aux zones de code à analyser. */
typedef bin_part ** (* get_def_parts_fc) (const exe_format *, size_t *);
@@ -77,6 +80,7 @@ struct _exe_format
off_t length; /* Taille de ce contenu */
get_entry_point_fc get_entry_point; /* Obtention du point d'entrée */
+ get_target_machine_fc get_target_machine; /* Architecture ciblée */
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 */