Skip to content

Commit f2467c2

Browse files
Alexei Starovoitovborkmann
authored andcommitted
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 <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent ef11d41 commit f2467c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ all: $(TEST_CUSTOM_PROGS)
1919
$(TEST_CUSTOM_PROGS): urandom_read
2020

2121
urandom_read: urandom_read.c
22-
$(CC) -o $(TEST_CUSTOM_PROGS) -static $<
22+
$(CC) -o $(TEST_CUSTOM_PROGS) -static $< -Wl,--build-id
2323

2424
# Order correspond to 'make run_tests' order
2525
TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \

0 commit comments

Comments
 (0)