diff options
| author | Mark Wielaard <[email protected]> | 2017-07-18 14:12:36 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-07-24 12:06:14 +0200 |
| commit | 1609679b1ef3611c71a08900c2f6b94bb97d454d (patch) | |
| tree | 24b3f6dfa5308e4c3a1ddb37b5097694a263ac7f /tests | |
| parent | c8e16c12661d18e6ae724a6d89b81c0df9da365a (diff) | |
backends: Don't depend on linux/bpf.h to compile bpf disassembler.
We only need a few constants and one structure definition from linux/bpf.
Just define those in a local lib/bpf.h file. This makes sure the bpf
disassembler is always build and included even when elfutils is build
on older GNU/Linux systems (and even on other platforms).
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 4 | ||||
| -rw-r--r-- | tests/Makefile.am | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index a4404e42..194d019f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2017-07-18 Mark Wielaard <[email protected]> + + * Makefile.am (TESTS): Always add run-disasm-bpf.sh if HAVE_LIBASM. + 2017-05-04 Ulf Hermann <[email protected]> * elfshphehdr.c: For writing, use /dev/null rather than /dev/zero. diff --git a/tests/Makefile.am b/tests/Makefile.am index 7fd4b211..368e9263 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -156,10 +156,7 @@ endif if HAVE_LIBASM check_PROGRAMS += $(asm_TESTS) -TESTS += $(asm_TESTS) -if HAVE_LINUX_BPF_H -TESTS += run-disasm-bpf.sh -endif +TESTS += $(asm_TESTS) run-disasm-bpf.sh endif EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ |
