X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Fmain.c;h=4467a2cbcc995887a7ba88f4a5100e687b66f387;hb=98e4a3d2f841bce726473d418e2a5b10e28806d7;hp=991fe09423b20247cfc0a4765873f3707934d3d9;hpb=ca9ebec2dae232010645e9a875ee47427f29a21e;p=centaur.git 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");