This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 0/2] Add support for BPF


Changes since v2:
 (1) We've got an official number for EM_BPF,
 (2) A disassembly test case,
 (3) Added a configure test for <linux/bpf.h>,
 (4) Byte swapping of bpf_insns during disassembly,
 (5) ChangeLog entries.

I've tested 2-4 with a ppc64 Fedora 20 host, which doesn't natively
have <linux/bpf.h>.  I then forced configure to find the header I
copied over to the machine and re-tested to see that the little-endian
disassembly test case works properly with the big-endian host.


r~


Richard Henderson (2):
  Sync elf.h from glibc
  Add support for BPF

 ChangeLog                          |   4 +
 backends/ChangeLog                 |   9 ++
 backends/Makefile.am               |  10 +-
 backends/bpf_init.c                |  60 ++++++++
 backends/bpf_regs.c                |  64 +++++++++
 backends/bpf_reloc.def             |  31 ++++
 backends/common-reloc.c            |   7 +-
 configure.ac                       |   4 +
 libasm/ChangeLog                   |   4 +
 libasm/disasm_cb.c                 |   4 +-
 libcpu/ChangeLog                   |   7 +
 libcpu/Makefile.am                 |   6 +
 libcpu/bpf_disasm.c                | 288 +++++++++++++++++++++++++++++++++++++
 libcpu/i386_disasm.c               |   3 +-
 libebl/ChangeLog                   |   5 +
 libebl/ebl-hooks.h                 |   2 +-
 libebl/eblopenbackend.c            |   1 +
 libelf/ChangeLog                   |   4 +
 libelf/elf.h                       | 281 +++++++++++++++++++++++++-----------
 src/ChangeLog                      |   4 +
 src/elflint.c                      |   2 +-
 tests/ChangeLog                    |   9 ++
 tests/Makefile.am                  |   7 +-
 tests/run-disasm-bpf.sh            |  63 ++++++++
 tests/testfile-bpf-dis1.expect.bz2 | Bin 0 -> 1497 bytes
 tests/testfile-bpf-dis1.o.bz2      | Bin 0 -> 737 bytes
 26 files changed, 786 insertions(+), 93 deletions(-)
 create mode 100644 backends/bpf_init.c
 create mode 100644 backends/bpf_regs.c
 create mode 100644 backends/bpf_reloc.def
 create mode 100644 libcpu/bpf_disasm.c
 create mode 100755 tests/run-disasm-bpf.sh
 create mode 100644 tests/testfile-bpf-dis1.expect.bz2
 create mode 100644 tests/testfile-bpf-dis1.o.bz2

-- 
2.5.5

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]