Raising machine code back up to LLVM IR is hard to do in a way that
will give you any efficiency or portability. llvm-mc will at most
help you to disassemble an object file to LLVM's representation of the
machine code. IIRC that's not even possible at the moment, since it
requires parsing object files, not just generating them.
Reid
On Wed, Feb 9, 2011 at 4:38 PM, Nipun Arora <nipun2512 at gmail.com>
wrote:> Hi,
> I was looking into ways to convert an x86 executable(ELF), to an LLVM-IR
> representation.
> To the best of my knowledge llvm-mc seems to be the tool which can be
> used...
> It would be great if anyone could give pointers in the same direction...
> Thanks
> Nipun
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>