Re: [bpf-next PATCH v2] bpf: fix bpftool without skeleton code enabled

2020-07-03 Thread Daniel Borkmann
On 7/3/20 6:31 AM, John Fastabend wrote: Fix segfault from bpftool by adding emit_obj_refs_plain when skeleton code is disabled. Tested by deleting BUILD_BPF_SKELS in Makefile. We found this doing backports for Cilium when a testing image pulled in latest bpf-next bpftool, but kept using an olde

[bpf-next PATCH v2] bpf: fix bpftool without skeleton code enabled

2020-07-02 Thread John Fastabend
Fix segfault from bpftool by adding emit_obj_refs_plain when skeleton code is disabled. Tested by deleting BUILD_BPF_SKELS in Makefile. We found this doing backports for Cilium when a testing image pulled in latest bpf-next bpftool, but kept using an older clang-7. # ./bpftool prog show Error: bp