summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/Makefile
diff options
context:
space:
mode:
authorAlexei Starovoitov2018-05-15 02:11:29 +0200
committerDaniel Borkmann2018-05-15 10:07:44 +0200
commitf2467c2dbc019548052f3a64dc1efd01c0ae27aa (patch)
treec196392a82c8b3d3c4689d9819d44c561ed16946 /tools/testing/selftests/bpf/Makefile
parentMerge branch 'convert-doc-to-rst' (diff)
downloadkernel-qcow2-linux-f2467c2dbc019548052f3a64dc1efd01c0ae27aa.tar.gz
kernel-qcow2-linux-f2467c2dbc019548052f3a64dc1efd01c0ae27aa.tar.xz
kernel-qcow2-linux-f2467c2dbc019548052f3a64dc1efd01c0ae27aa.zip
selftests/bpf: make sure build-id is on
--build-id may not be a default linker config. Make sure it's used when linking urandom_read test program. Otherwise test_stacktrace_build_id[_nmi] tests will be failling. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
-rw-r--r--tools/testing/selftests/bpf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
index 438d4f93875b..133ebc68cbe4 100644
--- a/tools/testing/selftests/bpf/Makefile
+++ b/tools/testing/selftests/bpf/Makefile
@@ -19,7 +19,7 @@ all: $(TEST_CUSTOM_PROGS)
$(TEST_CUSTOM_PROGS): urandom_read
urandom_read: urandom_read.c
- $(CC) -o $(TEST_CUSTOM_PROGS) -static $<
+ $(CC) -o $(TEST_CUSTOM_PROGS) -static $< -Wl,--build-id
# Order correspond to 'make run_tests' order
TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \