[PATCH 1/1] Add disassembler support for NFP.

Francois H. Theron francois.theron@netronome.com
Tue Apr 10 13:25:00 GMT 2018


This patch adds support to objdump disassemble NFP firmware files
(.nffw). It also adds some basic readelf support.

Signed-off-by: Francois H. Theron <francois.theron@netronome.com>
---
 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-disassembler-support-for-NFP.patch
Type: text/x-patch
Size: 216277 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180410/a23139af/attachment.bin>


More information about the Binutils mailing list