<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 7/17/15 2:09 AM, 慕冬亮 wrote:<br>
</div>
<blockquote
cite="mid:CAD-N9QWKXBEtDXp-fzN4av3OMNzdyf1QxPg76pKMqE6ytb5o1w@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">I want to transform elf binary to llvm IR, and do
some instrumentation based on llvm.
<div>Is there any tool which can do the transformation?</div>
</div>
</blockquote>
<br>
There is a tool called Revgen which might do what you need, though I
don't know if it meets your needs. Revgen can translate native code
to LLVM IR, but I'm not sure if it can translate the LLVM IR back to
native code for execution.<br>
<br>
There is also s2e which does dynamic translation from binary code to
LLVM IR; it should be able to run the code after instrumentation.<br>
<br>
IIRC, both come from George Candea's group at EPFL. A quick Google
search should help you find the code.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<br>
<blockquote
cite="mid:CAD-N9QWKXBEtDXp-fzN4av3OMNzdyf1QxPg76pKMqE6ytb5o1w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Thanks in advance.</div>
<div> </div>
<div> - mudongliang</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMDaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=op7TwgIDgBn1JZG_O4aETxAlZ05xAcnyy-kO8dnqjXU&s=29YAG55BeCzRbuAywBq_YqXFkmhTth5msd9UWxB7dXs&e=">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>