diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-11 23:42:48 (GMT) |
commit | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (patch) | |
tree | 68e49f325de3e93ef186d3e078da8ddc473aedf7 /src/format/exe_format.h | |
parent | 80dc0ac97987ad9246bee7c47458a015339453bf (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.h')
-rw-r--r-- | src/format/exe_format.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/format/exe_format.h b/src/format/exe_format.h index 13a37ee..1b359ff 100644 --- a/src/format/exe_format.h +++ b/src/format/exe_format.h @@ -89,6 +89,17 @@ exe_format *load_new_exe_format(const uint8_t *, off_t); +/* Architectures de destination des formats */ +typedef enum _FormatTargetMachine +{ + FTM_JVM, /* Java Virtual Machine */ + + FTM_COUNT + +} FormatTargetMachine; + + + /* Types de symbole */ typedef enum _SymbolType @@ -117,6 +128,11 @@ uint64_t get_exe_entry_point(const exe_format *); +/* Indique le type d'architecture visée par le format. */ +FormatTargetMachine get_exe_target_machine(const exe_format *); + + + /* Recherche une section donnée au sein de binaire. */ bool find_exe_section(const exe_format *, const char *, off_t *, off_t *, uint64_t *); |