summaryrefslogtreecommitdiff
path: root/backends/bpf_init.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-07-18 14:12:36 +0200
committerMark Wielaard <mark@klomp.org>2017-07-24 12:06:14 +0200
commit1609679b1ef3611c71a08900c2f6b94bb97d454d (patch)
tree24b3f6dfa5308e4c3a1ddb37b5097694a263ac7f /backends/bpf_init.c
parentc8e16c12661d18e6ae724a6d89b81c0df9da365a (diff)
downloadelfutils-1609679b1ef3611c71a08900c2f6b94bb97d454d.tar.gz
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 <mark@klomp.org>
Diffstat (limited to 'backends/bpf_init.c')
-rw-r--r--backends/bpf_init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/backends/bpf_init.c b/backends/bpf_init.c
index 22842e26..8ea1bc1a 100644
--- a/backends/bpf_init.c
+++ b/backends/bpf_init.c
@@ -52,9 +52,7 @@ bpf_init (Elf *elf __attribute__ ((unused)),
eh->name = "BPF";
bpf_init_reloc (eh);
HOOK (eh, register_info);
-#ifdef HAVE_LINUX_BPF_H
HOOK (eh, disasm);
-#endif
return MODVERSION;
}