Thanks for your reply.
I have translated ELF file to llvm IR successfully by referring the
"linked_elf_test.sh" script.
#####
However, It could not translate a DLL or PE file to LLVM IR on linux
system, even if I specified "-mtriple=i686-pc-win32".
I do it as follows:
1, I get the cfg file by IDA from windows using get_cfg.py . So I
could get the kernel32.cfg and test_exe.cfg.
2, I copied kernel32.cfg and test_exe.cfg to ubuntu which shipped with
mcsema. And the command I used as follows:
```
cfg_to_bc -mtriple=i686-pc-win32 -i test.cfg
-driver=mcsema_main,main,2,return,C -o test.bc
```
the errors are as follows:
===================================
....
shouldSubtractImageBase: Not on amd64
shouldSubtractImageBase: Not on amd64
error:
map::at
==================================
the cfg files are attached.
What is wrong in my work ?
#####
Another question:
when analyzing the tranlated bytecode, could mcsema give out the
virtual address of the origin ELF file with a specified LLVM IR
instruction ?
How to do it ?
Thanks.
Best Regards!
xqx