On Mon, Sep 14, 2020 at 11:37 AM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote: > > From: YiFei Zhu <zhuyifei@xxxxxxxxxx> > > The patch adds a simple wrapper bpf_prog_bind_map around the syscall. > When the libbpf tries to load a program, it will probe the kernel for > the support of this syscall and unconditionally bind .rodata section > to the program. > > Cc: YiFei Zhu <zhuyifei1999@xxxxxxxxx> > Signed-off-by: YiFei Zhu <zhuyifei@xxxxxxxxxx> > Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/lib/bpf/bpf.c | 16 +++++++++ > tools/lib/bpf/bpf.h | 8 +++++ > tools/lib/bpf/libbpf.c | 72 ++++++++++++++++++++++++++++++++++++++++ > tools/lib/bpf/libbpf.map | 1 + > 4 files changed, 97 insertions(+) > [...]