<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 25, 2017 at 8:51 AM, Daniel Sanders <span dir="ltr"><<a href="mailto:daniel_l_sanders@apple.com" target="_blank">daniel_l_sanders@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(removed my @<a href="http://imgtec.com" rel="noreferrer" target="_blank">imgtec.com</a> address since it no longer exists)<br>
<br>
Sorry for the slow reply, it's a busy time for me right now.<br>
<span class=""><br>
> On 23 Aug 2017, at 00:21, George Karpenkov via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> As a part of a recent move of libFuzzer from LLVM to compiler-rt I am looking into updating the build code<br>
> for the libraries which use libFuzzer.<br>
><br>
> I have tried to compile llvm-mc-assemble-fuzzer, and llvm-mc-disassemble-fuzzer, and I couldn’t build either of those.<br>
> For the first one, the reason is that it refers to a nonexistent enum,<br>
<br>
</span>I don't seem to be able to build this with cmake+ninja yet (I'm having trouble recursing the compiler on macOS) but after manually building it... It seems this broke at the start of August when the CodeModel argument was removed from InitMCObjectFileInfo(). After removing that argument and adding an 'extern "C"' it at least compiles. I haven't had chance to try running it yet.<br>
<span class=""><br>
> and for the second one I believe the reason is that it does not enclose LLVMFuzzerTestOneInput in “extern ‘C’”.<br>
<br>
</span>I agree we need an "extern C" here. I'm not sure what changed to make it required though.<br>
<span class=""><br>
> Are those libraries maintained and/or used?<br>
<br>
</span>I haven't used it for quite a while now. My original motivator was the Mips assembler/disassembler being very buggy. I was using it to find crashes and generate interesting test cases for round-trip testing of the assembler/disassembler. Since then, the Mips MC layer has become much more stable and I've also changed jobs.<br>
<br>
That said, I'd like to set up a bot to make use of these tools, </blockquote><div><br></div><div>As soon as these fuzz targets build, don't immediately crash, and have someone who cares about them, </div><div>I can add them to OSS-Fuzz for automated continuous fuzzing. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">it's mostly a matter of finding time for it. That's normally difficult but I should be able to do that in the next few weeks.<br>
<span class="im HOEnZb"><br>
> If yes, the code should be compilable, and ideally there should be a buildbot.<br>
> If no, maybe we should remove it, or move it to a separate repository.<br>
><br>
> Thanks,<br>
> George<br>
><br>
> (sorry for starting multiple threads, I believe this way it is more convenient to keep track of tasks)<br>
</span><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br>
</div></div></blockquote></div><br></div></div>