This patch should help people who misunderstand the importance of using proper prefixes to their ELF sections in bpf object files. The patch assumes that programs with type BPF_PROG_TYPE_UNSPEC are always invalid, as indicated by `man 2 bpf`. Please let me know if that is not accurate. Andrei Matei (1): libbpf: fail early when loading programs with unspecified type tools/lib/bpf/libbpf.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 2.27.0