[0/1] Add disassembler support for NFP.

Message ID 20180410132454.4622-1-francois.theron@netronome.com
Headers show
Series
  • Add disassembler support for NFP.
Related show

Message

Francois H. Theron April 10, 2018, 1:24 p.m.
This patch adds support to objdump for disassembly of NFP
(Netronome Flow Processor) ELF files (.nffw) as well as some basic readelf
support.

If the patch is acceptable, I'll submit config.sub to config-patches@gnu.org


Francois H. Theron (1):
  Add disassembler support for NFP.

 bfd/Makefile.am                               |    4 +
 bfd/Makefile.in                               |    5 +
 bfd/archures.c                                |    5 +
 bfd/bfd-in2.h                                 |    3 +
 bfd/config.bfd                                |    7 +
 bfd/configure                                 |    1 +
 bfd/configure.ac                              |    1 +
 bfd/cpu-nfp.c                                 |   62 +
 bfd/elf-bfd.h                                 |    1 +
 bfd/elf64-nfp.c                               |  286 ++
 bfd/po/SRC-POTFILES.in                        |    2 +
 bfd/targets.c                                 |    3 +
 binutils/readelf.c                            |   37 +
 .../testsuite/binutils-all/nfp/objdump.exp    |   52 +
 binutils/testsuite/binutils-all/nfp/test1.d   |  973 ++++++
 .../binutils-all/nfp/test1_nfp6000.nffw       |  Bin 0 -> 9880 bytes
 .../testsuite/binutils-all/nfp/test2_ctx8.d   |   16 +
 .../binutils-all/nfp/test2_nfp6000.nffw       |  Bin 0 -> 1472 bytes
 .../binutils-all/nfp/test2_no-pc_ctx4.d       |   16 +
 config.sub                                    |    2 +
 configure                                     |    4 +
 configure.ac                                  |    4 +
 include/dis-asm.h                             |    1 +
 include/elf/common.h                          |    1 +
 include/elf/nfp.h                             |  305 ++
 include/opcode/nfp.h                          |  181 +
 opcodes/Makefile.am                           |    1 +
 opcodes/Makefile.in                           |    1 +
 opcodes/configure                             |    1 +
 opcodes/configure.ac                          |    1 +
 opcodes/disassemble.c                         |    9 +
 opcodes/disassemble.h                         |    1 +
 opcodes/nfp-dis.c                             | 2966 +++++++++++++++++
 opcodes/po/POTFILES.in                        |    1 +
 34 files changed, 4953 insertions(+)
 create mode 100644 bfd/cpu-nfp.c
 create mode 100755 bfd/elf64-nfp.c
 create mode 100644 binutils/testsuite/binutils-all/nfp/objdump.exp
 create mode 100644 binutils/testsuite/binutils-all/nfp/test1.d
 create mode 100644 binutils/testsuite/binutils-all/nfp/test1_nfp6000.nffw
 create mode 100644 binutils/testsuite/binutils-all/nfp/test2_ctx8.d
 create mode 100644 binutils/testsuite/binutils-all/nfp/test2_nfp6000.nffw
 create mode 100644 binutils/testsuite/binutils-all/nfp/test2_no-pc_ctx4.d
 create mode 100755 include/elf/nfp.h
 create mode 100644 include/opcode/nfp.h
 create mode 100644 opcodes/nfp-dis.c

-- 
2.17.0