]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
selftests/bpf: make sure build-id is on
authorAlexei Starovoitov <ast@kernel.org>
Tue, 15 May 2018 00:11:29 +0000 (17:11 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 15 May 2018 08:07:44 +0000 (10:07 +0200)
--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>
tools/testing/selftests/bpf/Makefile

index 438d4f93875bfa36578d4630d788fde213cb037a..133ebc68cbe474d2e209dfb49eb871c58d8982d1 100644 (file)
@@ -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 \