Hello,
I have used mcsema-dyninst-disass as front-end module to generate a CFG (disassembled instruction) file for the 32bit elf binaries using belwo commands.
$ mcsema-dyninst-disass --binary hello --output hello.cfg
I could see the hello.cfg generated file, but i am not able to open and see the CFG or instruction block information on the generated hello.cfg file ( something like IDA pro provided disassembly).
If i try to open, i can see some 0 and 1 information as similar as machine code file opening.
Similarly, I tried to generate a hello.bc or IR file while providing hello.cfg as input using the below command.
$ mcsema-dyninst-disass --binary hello --output hello.cfg
I got below error as well as hello.bc file is generated but still i cant open and see the hello.bc file information. If i try to open, same i can see some 0 and 1 information as similar as machine code file opening in the hello.bc file as well.
Errors:
E20200708 19:08:18.032294 3635 Function.cpp:842] Block 500 has no terminator, and instruction at 500 is not a local no-return function call.
E20200708 19:08:18.034628 3635 Function.cpp:921] Function sub_520_printf is empty!
E20200708 19:08:18.034796 3635 Function.cpp:353] Cannot find target of instruction at 530; the static target 536 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.034807 3635 Function.cpp:376] Adding missing block 536 in function sub_530_targ530 as a tail call to __remill_error
E20200708 19:08:18.036600 3635 Function.cpp:353] Cannot find target of instruction at 594; the static target 596 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.036615 3635 Function.cpp:376] Adding missing block 596 in function sub_570_deregister_tm_clones as a tail call to __remill_error
E20200708 19:08:18.036934 3635 Function.cpp:353] Cannot find target of instruction at 5e5; the static target 5e7 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.036947 3635 Function.cpp:376] Adding missing block 5e7 in function sub_640_frame_dummy as a tail call to __remill_error
E20200708 19:08:18.037375 3635 Function.cpp:353] Cannot find target of instruction at 5e5; the static target 5e7 is not associated with a lifted subroutine, and it does not have a known call target.
E20200708 19:08:18.037389 3635 Function.cpp:376] Adding missing block 5e7 in function sub_5b0_register_tm_clones as a tail call to __remill_error