Re: llvm-objdump...

2017-04-28 Thread Alexei Starovoitov
On 4/28/17 9:38 AM, David Miller wrote: From: Alexei Starovoitov Date: Fri, 28 Apr 2017 09:22:32 -0700 On 4/28/17 9:17 AM, David Miller wrote: Even if I give it -triple=bpfeb it emits immediates incorrectly. The bug is certainly in the insn field fetcher of the disassembler. got it. so the

Re: llvm-objdump...

2017-04-28 Thread David Miller
From: Alexei Starovoitov Date: Fri, 28 Apr 2017 09:22:32 -0700 > On 4/28/17 9:17 AM, David Miller wrote: >> Even if I give it -triple=bpfeb it emits immediates incorrectly. >> >> The bug is certainly in the insn field fetcher of the disassembler. > > got it. so the binary looks correct, but disa

Re: llvm-objdump...

2017-04-28 Thread Alexei Starovoitov
On 4/28/17 9:17 AM, David Miller wrote: Even if I give it -triple=bpfeb it emits immediates incorrectly. The bug is certainly in the insn field fetcher of the disassembler. got it. so the binary looks correct, but disasm output is wrong? Thanks! Looks like there is a bug there indeed.

Re: llvm-objdump...

2017-04-28 Thread David Miller
From: Alexei Starovoitov Date: Tue, 25 Apr 2017 20:48:52 -0700 > On 4/25/17 10:13 AM, David Miller wrote: >> >> I think there are some endianness issues ;-) >> >> davem@patience:~/src/GIT/net-next/tools/testing/selftests/bpf$ >> llvm-objdump -S x.o > > nice host name ;) > >> x.o:file format

Re: llvm-objdump...

2017-04-25 Thread Alexei Starovoitov
On 4/25/17 10:13 AM, David Miller wrote: I think there are some endianness issues ;-) davem@patience:~/src/GIT/net-next/tools/testing/selftests/bpf$ llvm-objdump -S x.o nice host name ;) x.o:file format ELF64-BPF Disassembly of section test1: process: 0: b7 00 00 00 00 00