summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9791feb..87b47ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,6 +5,8 @@
#include <libelf.h>
#include <gelf.h>
+#include <libelfu/libelfu.h>
+
#include "elfhandle.h"
#include "options.h"
#include "printing.h"
@@ -57,6 +59,18 @@ int main(int argc, char **argv)
}
+ /* Generate a memory model of the file */
+ if (opts.model) {
+ ElfuElf *me;
+
+ me = elfu_modelFromElf(hIn.e);
+
+ if (me) {
+ printf("Model successfully loaded.\n");
+ }
+ }
+
+
EXIT:
if (hOut.e) {