diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-07-14 23:43:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-07-14 23:43:09 (GMT) |
commit | b5a2692820a0b85a03ff28fc2154f8d50f26d5e2 (patch) | |
tree | 9b6760ddedcb46ece3ec577f7494e40fabce7b87 /src/format/elf/elf-int.h | |
parent | 24d7c72a124df20339a50bb61e66385352e68a1b (diff) |
Restored the code loading the ELF relocations.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@93 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf/elf-int.h')
-rw-r--r-- | src/format/elf/elf-int.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/format/elf/elf-int.h b/src/format/elf/elf-int.h index 65fc922..b828a88 100644 --- a/src/format/elf/elf-int.h +++ b/src/format/elf/elf-int.h @@ -52,6 +52,14 @@ typedef struct _elf_symbol } elf_symbol; +/* Relocalisation trouvée */ +typedef struct _elf_relocation +{ + const char *name; /* Désignation du symbole */ + vmpa_t address; /* Adresse du symbole */ + +} elf_relocation; + /* Description du format ELF */ @@ -65,6 +73,12 @@ struct _elf_format char *sec_names; /* Noms des sections */ size_t sec_size; /* Taille de ces définitions */ + elf_relocation *relocations; /* Liste des relocalisations */ + size_t rel_count; /* Taille de cette liste */ + + GBinRoutine **routines; /* Liste des routines trouvées */ + size_t routines_count; /* Nombre de ces routines */ + elf_symbol *symbols; /* Liste des symboles */ size_t sym_count; /* Taille de cette liste */ |