summaryrefslogtreecommitdiff
path: root/src/format/elf/elf.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-12 21:28:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-12 21:28:01 (GMT)
commit5fce21379baac06b7b9359c4b0fcb7fb3867c301 (patch)
tree19bf2943fe5a8a46bae227b8863bc9714fb3ec66 /src/format/elf/elf.c
parent8ee7fc5db965adaa835ca87bb3d2e2d43e52fbbb (diff)
Added the ELF strings to the preloaded instruction list.
Diffstat (limited to 'src/format/elf/elf.c')
-rw-r--r--src/format/elf/elf.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/format/elf/elf.c b/src/format/elf/elf.c
index bc48eb5..0336ba3 100644
--- a/src/format/elf/elf.c
+++ b/src/format/elf/elf.c
@@ -39,6 +39,7 @@
#include "strings.h"
#include "symbols.h"
#include "../../gui/panels/log.h"
+#include "../../plugins/pglist.h"
@@ -293,6 +294,18 @@ GBinFormat *g_elf_format_new(GBinContent *content, GExeFormat *parent, GtkStatus
+ /**
+ * On inscrit les éléments préchargés avant tout !
+ *
+ * Cela permet de partir d'une base vide, et d'ajouter les instructions et
+ * leurs commentaires par paires.
+ *
+ * Ensuite, on inscrit le reste (comme les chaînes de caractères).
+ */
+
+ preload_binary_format(PGA_FORMAT_PRELOAD, base, base->info, status);
+
+
if (!load_elf_symbols(result, status))
{
/* TODO */