<div dir="ltr">I see. Thanks!</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 9, 2015 at 5:13 PM Alexei Starovoitov <<a href="mailto:alexei.starovoitov@gmail.com">alexei.starovoitov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 9, 2015 at 5:10 PM, Xiaochu Liu via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Dear there,<br>
><br>
> I was trying to use clang to cross compile executable directly on my mac to<br>
> bpf ISA:<br>
><br>
> clang -target bpf-linux-gnu aaa.c<br>
><br>
> But I guess maybe the linker does not support BPF? (with -c clang can<br>
> generate unlinked objs)<br>
><br>
> Unexpected arch<br>
> UNREACHABLE executed at<br>
> llvm/tools/clang/lib/Driver/Tools.cpp:8113<br>
><br>
> Should I use other linkers to link clang generated BPF objs?<br>
<br>
there is no linker for BPF. It can only produce .o<br>
so just add -c<br>
</blockquote></div>