gas: add support for eBPF
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:05:12 +0000 (19:05 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:34:04 +0000 (19:34 +0200)
commitf8861f5dc2391e0c46dd118370195e7730ec46ca
treee348f2208eef2eb8d714c4a4224e65b997cfea94
parent79472b45328232b083e897a511d4160a6dde0463
gas: add support for eBPF

This patch adds a port for the Linux kernel eBPF to the GNU assembler.
A testsuite and documentation updates are included.

gas/ChangeLog:

2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>

* configure.ac: Handle bpf-*-* targets.
* configure.tgt (generic_target): Likewise.
* configure: Regenerate.
* Makefile.am (TARGET_CPU_CFILES): Add tc-bpf.c.
(TARGET_CPU_HFILES): Add tc-bpf.h.
* Makefile.in: Regenerated.
* config/tc-bpf.c: New file.
* config/tc-bpf.h: Likewise.
* doc/Makefile.am (CPU_DOCS): Add c-bpf.texi.
* doc/Makefile.in: Regenerated.
* doc/all.texi: set BPF.
* doc/as.texi: Add eBPF contents.
* doc/c-bpf.texi: New file.
* testsuite/gas/bpf/alu.d: New file.
* testsuite/gas/bpf/mem-be.d: Likewise.
* testsuite/gas/bpf/mem.s: Likewise.
* testsuite/gas/bpf/mem.d: Likewise.
* testsuite/gas/bpf/lddw-be.d: Likewise.
* testsuite/gas/bpf/lddw.s: Likewise.
* testsuite/gas/bpf/lddw.d: Likewise.
* testsuite/gas/bpf/jump-be.d: Likewise.
* testsuite/gas/bpf/jump.s: Likewise.
* testsuite/gas/bpf/jump.d: Likewise.
* testsuite/gas/bpf/exit-be.d: Likewise.
* testsuite/gas/bpf/exit.s: Likewise.
* testsuite/gas/bpf/exit.d: Likewise.
* testsuite/gas/bpf/call-be.d: Likewise.
* testsuite/gas/bpf/call.s: Likewise.
* testsuite/gas/bpf/call.d: Likewise.
* testsuite/gas/bpf/bpf.exp: Likewise.
* testsuite/gas/bpf/atomic-be.d: Likewise.
* testsuite/gas/bpf/atomic.s: Likewise.
* testsuite/gas/bpf/atomic.d: Likewise.
* testsuite/gas/bpf/alu-be.d: Likewise.
* testsuite/gas/bpf/alu32-be.d: Likewise.
* testsuite/gas/bpf/alu32.s: Likewise.
* testsuite/gas/bpf/alu32.d: Likewise.
* testsuite/gas/bpf/alu.s: Likewise.
* testsuite/gas/all/gas.exp: Introduce a nop_type for eBPF.
* testsuite/gas/all/org-1.s: Support nop_type 6.
* testsuite/gas/all/org-1.l: Updated to reflect changes in
org-1.s.
41 files changed:
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/config/tc-bpf.c [new file with mode: 0644]
gas/config/tc-bpf.h [new file with mode: 0644]
gas/configure
gas/configure.ac
gas/configure.tgt
gas/doc/Makefile.am
gas/doc/Makefile.in
gas/doc/all.texi
gas/doc/as.texi
gas/doc/c-bpf.texi [new file with mode: 0644]
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/org-1.l
gas/testsuite/gas/all/org-1.s
gas/testsuite/gas/bpf/alu-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/alu.d [new file with mode: 0644]
gas/testsuite/gas/bpf/alu.s [new file with mode: 0644]
gas/testsuite/gas/bpf/alu32-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/alu32.d [new file with mode: 0644]
gas/testsuite/gas/bpf/alu32.s [new file with mode: 0644]
gas/testsuite/gas/bpf/atomic-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/atomic.d [new file with mode: 0644]
gas/testsuite/gas/bpf/atomic.s [new file with mode: 0644]
gas/testsuite/gas/bpf/bpf.exp [new file with mode: 0644]
gas/testsuite/gas/bpf/call-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/call.d [new file with mode: 0644]
gas/testsuite/gas/bpf/call.s [new file with mode: 0644]
gas/testsuite/gas/bpf/exit-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/exit.d [new file with mode: 0644]
gas/testsuite/gas/bpf/exit.s [new file with mode: 0644]
gas/testsuite/gas/bpf/jump-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/jump.d [new file with mode: 0644]
gas/testsuite/gas/bpf/jump.s [new file with mode: 0644]
gas/testsuite/gas/bpf/lddw-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/lddw.d [new file with mode: 0644]
gas/testsuite/gas/bpf/lddw.s [new file with mode: 0644]
gas/testsuite/gas/bpf/mem-be.d [new file with mode: 0644]
gas/testsuite/gas/bpf/mem.d [new file with mode: 0644]
gas/testsuite/gas/bpf/mem.s [new file with mode: 0644]