From: Alexei Starovoitov Date: Tue, 15 May 2018 00:11:29 +0000 (-0700) Subject: selftests/bpf: make sure build-id is on X-Git-Tag: for-linus-20180616~56^2~223^2~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f2467c2dbc019548052f3a64dc1efd01c0ae27aa;p=linux-block.git 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 Acked-by: Yonghong Song Signed-off-by: Daniel Borkmann --- 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 \