diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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) { |