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