[LLVMdev] Unable to generate obj file using llc for bpf

Xiaochu Liu xiaochu1122 at gmail.com
Sun Aug 2 21:06:41 PDT 2015


Yes, it works!

Thanks, Tim and Alexei !

On Sun, Aug 2, 2015 at 7:55 PM Tim Northover <t.p.northover at gmail.com>
wrote:

> On 2 August 2015 at 18:47, Xiaochu Liu <xiaochu1122 at gmail.com> wrote:
> > When i use : llc -march bpf -filetype=obj arith.bc
> > [...]
> > 9  llc                      0x0000000104dd593e
> > llvm::cast_retty<llvm::MCSectionMachO, llvm::MCSection*>::ret_type
> > llvm::cast<llvm::MCSectionMachO, llvm::MCSection>(llvm::MCSection*) + 110
>
> I thought BPF was mostly a Linux thing (I certainly don't know of any
> MachO-based use). Perhaps try "-mtriple=bpf-linux-gnu" instead of
> "-march=bpf", though that's really just wild guess.
>
> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150803/e66f75cb/attachment.html>


More information about the llvm-dev mailing list