[LLVMdev] Translation between MCInst and Binary Executable
qcolombet at apple.com
Wed Sep 18 16:16:56 PDT 2013
You may want to have a look to llvm-objdump tool.
You will find some good hints on how to use/build the MCDisassembler to decode the MCInst from a stream of bytes.
More specifically, MCDisassembler::getInstruction does the decode part.
On Sep 18, 2013, at 2:07 PM, Yue Chen <ycyc54321 at gmail.com> wrote:
> Hi, Dear LLVM Dev Group,
> I am doing an LLVM project aimed to disassemble an ARM ELF binary executable to the MCInst format, inserting some instructions or doing some modification, and re-assemble the MCInst to an ELF binary.
> As I used the llvm-mc, it seems to only have the option "llvm-mc -disassemble", which reads strings and output strings. Is there any command or function that can take a binary, and translates it to the MCInst format, finally translating back to a binary?
> Thanks a million for your help.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev