diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-03-29 17:24:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-03-29 17:24:22 (GMT) |
commit | 52e036040b5e0ad8acde3d467ac8d9ca43ed414c (patch) | |
tree | 9f869999534857786fc8e0870772d8e5cabef2fb /src/format/executable-int.h | |
parent | 057cee1c3c109639af8f30e39e00f4884a353f31 (diff) |
Used real virtual addresses when describing ELF items.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@496 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/executable-int.h')
-rw-r--r-- | src/format/executable-int.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/format/executable-int.h b/src/format/executable-int.h index 59a513e..bb46248 100644 --- a/src/format/executable-int.h +++ b/src/format/executable-int.h @@ -46,6 +46,13 @@ typedef bool (* translate_off_fc) (const GExeFormat *, off_t, vmpa_t *); +/* Fournit l'emplacement correspondant à une position physique. */ +typedef bool (* translate_phys_fc) (const GExeFormat *, phys_t, vmpa2t *); + +/* Fournit l'emplacement correspondant à une adresse virtuelle. */ +typedef bool (* translate_virt_fc) (const GExeFormat *, virt_t, vmpa2t *); + + /* Format d'exécutable générique (instance) */ struct _GExeFormat @@ -67,6 +74,9 @@ struct _GExeFormatClass { GBinFormatClass parent; /* A laisser en premier */ + translate_phys_fc translate_phys; /* Correspondance phys -> vmpa */ + translate_virt_fc translate_virt; /* Correspondance virt -> vmpa */ + }; |