On Tue, Aug 18, 2020 at 6:08 PM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > On Tue, Aug 18, 2020 at 02:59:08PM -0700, Andrii Nakryiko wrote: > > It's trivial to handle missing ELF_C_MMAP_READ support in libelf the way that > > objtool has solved it in > > ("774bec3fddcc objtool: Add fallback from ELF_C_READ_MMAP to ELF_C_READ"). > > > > So instead of having an entire feature detector for that, just do what objtool > > does for perf and libbpf. And keep their Makefiles a bit simpler. > > > > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> > > overall looks good, but this patch doesn't apply to bpf-next. yeah, seems like patches you've already landed on bpf-next have auto-resolvable conflicts. I'll rebase and post v2.