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

Tim Northover t.p.northover at gmail.com
Sun Aug 2 19:55:08 PDT 2015


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.



More information about the llvm-dev mailing list