Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-05 Thread David Miller
From: David Miller Date: Mon, 01 May 2017 23:51:58 -0400 (EDT) > From: Alexei Starovoitov > Date: Mon, 1 May 2017 20:49:21 -0700 > >> (gdb) x/10i bpf_prog1 >>0x0 : ldimm64 r0, 590618314553 >>0x10 : stdw[r1+-8], r10 >>0x18 : lddwr10, [r1+-8] >>0x20 : add

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-05 Thread David Miller
From: Alexei Starovoitov Date: Fri, 5 May 2017 11:24:19 -0700 > Yonghong fixed llvm bug with big-endian dwarf [1] > and binutils worked out of the box :) > > $ ./bin/clang -O2 -target bpfeb -c -g test.c > $ /w/binutils-gdb/bld/binutils/objdump -S test.o > > test.o: file format elf64-bpfbe >

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-05 Thread Alexei Starovoitov
On 5/1/17 8:49 PM, Alexei Starovoitov wrote: On 4/30/17 9:07 AM, David Miller wrote: This is mainly a synchronization point, I still need to look more deeply into Alexei's -g issue. New in this version from v3: - Remove tailcall from opcode table - Rearrange relocations so that numbers match

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread David Miller
From: Alexei Starovoitov Date: Mon, 1 May 2017 20:49:21 -0700 > (gdb) x/10i bpf_prog1 >0x0 : ldimm64 r0, 590618314553 >0x10 : stdw[r1+-8], r10 >0x18 : lddwr10, [r1+-8] >0x20 : add r0, -1879113726 >0x28 : lddwr1, [r0+0] >0x30 :

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread Alexei Starovoitov
On 4/30/17 9:07 AM, David Miller wrote: This is mainly a synchronization point, I still need to look more deeply into Alexei's -g issue. New in this version from v3: - Remove tailcall from opcode table - Rearrange relocations so that numbers match with LLVM ones - Emit relocs properly so that

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread David Miller
From: Aaron Conole Date: Mon, 01 May 2017 14:39:39 -0400 > David Miller writes: > >> From: Aaron Conole >> Date: Mon, 01 May 2017 13:22:00 -0400 >> >>> x86-64: >>> Running /home/aconole/git/binutils-gdb/gas/testsuite/gas/bpf/bpf.exp ... >>> FAIL: jump >>> FAIL: call >>> FAIL: imm64a >>

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread Aaron Conole
David Miller writes: > From: Aaron Conole > Date: Mon, 01 May 2017 13:22:00 -0400 > >> x86-64: >> Running /home/aconole/git/binutils-gdb/gas/testsuite/gas/bpf/bpf.exp ... >> FAIL: jump >> FAIL: call >> FAIL: imm64a >> Running /home/aconole/git/binutils-gdb/gas/testsuite/gas/cfi/cfi.exp

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread David Miller
From: Aaron Conole Date: Mon, 01 May 2017 13:22:00 -0400 > x86-64: > Running /home/aconole/git/binutils-gdb/gas/testsuite/gas/bpf/bpf.exp ... > FAIL: jump > FAIL: call > FAIL: imm64a > Running /home/aconole/git/binutils-gdb/gas/testsuite/gas/cfi/cfi.exp ... I cannot reproduce this, can

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread David Miller
From: Aaron Conole Date: Mon, 01 May 2017 13:22:00 -0400 > Latest results from x86-64 and aarch64: I'll see if I can reproduce here... > I've also got a small incremental to fix some trailing whitespace, and > s/SPARC/BPF/ in one file, attached. Applied, thanks!

Re: [PATCH v4 binutils] Add BPF support to binutils...

2017-05-01 Thread Aaron Conole
David Miller writes: > This is mainly a synchronization point, I still need to look > more deeply into Alexei's -g issue. > > New in this version from v3: > - Remove tailcall from opcode table > - Rearrange relocations so that numbers match with LLVM ones > - Emit relocs properly so that dwarf

[PATCH v4 binutils] Add BPF support to binutils...

2017-04-30 Thread David Miller
This is mainly a synchronization point, I still need to look more deeply into Alexei's -g issue. New in this version from v3: - Remove tailcall from opcode table - Rearrange relocations so that numbers match with LLVM ones - Emit relocs properly so that dwarf2 debug info tests pass - Handle n