]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/docs: Update vmtest docs for static linking
authorKP Singh <kpsingh@kernel.org>
Mon, 7 Mar 2022 13:30:47 +0000 (13:30 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 8 Mar 2022 06:27:00 +0000 (22:27 -0800)
commitba13ac833449191df501a1a6444c5fcbc26b696e
tree525cb317b0fea5cf4038bd6ea00b60e0fdfe073a
parentee3ee3fbe971882898bb56fde311358ba19ba20f
bpf/docs: Update vmtest docs for static linking

Dynamic linking when compiling on the host can cause issues when the
libc version does not match the one in the VM image. Update the
docs to explain how to do this.

Before:
  ./vmtest.sh -- ./test_progs -t test_ima
  ./test_progs: /usr/lib/libc.so.6: version `GLIBC_2.33' not found (required by ./test_progs)

After:

  LDLIBS=-static ./vmtest.sh -- ./test_progs -t test_ima
  test_ima:OK
  Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED

Reported-by: "Geyslan G. Bem" <geyslan@gmail.com>
Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220307133048.1287644-1-kpsingh@kernel.org
tools/testing/selftests/bpf/README.rst