diff options
Diffstat (limited to 'plugins/readelf/reader.c')
-rw-r--r-- | plugins/readelf/reader.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/readelf/reader.c b/plugins/readelf/reader.c index 62efdf4..47b33a0 100644 --- a/plugins/readelf/reader.c +++ b/plugins/readelf/reader.c @@ -34,8 +34,8 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("readelf", "Displays information about ELF files", "0.1.0", - PGA_FORMAT_LOADER_LAST); +DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("readelf", "Displays information about ELF files", "0.2.0", + PGA_FORMAT_PRELOAD); /****************************************************************************** @@ -43,6 +43,7 @@ DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("readelf", "Displays information about ELF files * Paramètres : plugin = greffon à manipuler. * * action = type d'action attendue. * * format = description de l'exécutable à compléter. * +* info = informations à constituer en avance de phase. * * status = barre de statut à tenir informée. * * * * Description : Etablit des symboles complémentaires dans un format ELF. * @@ -53,7 +54,7 @@ DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("readelf", "Displays information about ELF files * * ******************************************************************************/ -G_MODULE_EXPORT bool handle_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GtkStatusStack *status) +G_MODULE_EXPORT bool preload_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GPreloadInfo *info, GtkStatusStack *status) { bool result; /* Bilan à retourner */ GElfFormat *elf_fmt; /* Version ELF */ @@ -66,13 +67,13 @@ G_MODULE_EXPORT bool handle_binary_format(const GPluginModule *plugin, PluginAct elf_fmt = G_ELF_FORMAT(format); - result = annotate_elf_header(format); + result = annotate_elf_header(format, info); - result &= annotate_elf_program_header_table(elf_fmt, status); + result &= annotate_elf_program_header_table(elf_fmt, info, status); - result &= annotate_elf_section_header_table(elf_fmt, status); + result &= annotate_elf_section_header_table(elf_fmt, info, status); - show_elf_section_string_table(elf_fmt, status); + show_elf_section_string_table(elf_fmt, info, status); hbf_exit: |