summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 991fe09..4467a2c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -67,12 +67,16 @@ int main(int argc, char **argv)
if (me) {
printf("Model successfully loaded.\n");
-
elfu_mCheck(me);
- printf("Model checked.\n");
+ printf("Input model checked.\n");
- elfu_mToElf(me, hOut.e);
+ if (opts.insertBeforeSz) {
+ elfu_mInsertBefore(me, opts.insertBeforeOffs, opts.insertBeforeSz);
+ }
+ elfu_mCheck(me);
+ printf("Output model checked.\n");
+ elfu_mToElf(me, hOut.e);
printf("Model converted to ELF, ready to be written.\n");
} else {
printf("Failed to load model.\n");