]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Pass sanitizer flags to linker through LDFLAGS
authorAndrii Nakryiko <andrii@kernel.org>
Sun, 7 Nov 2021 16:55:13 +0000 (08:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Nov 2021 17:14:15 +0000 (09:14 -0800)
commit7b9c8f25d52d4afa647a00c906c4c944909d7d78
treedd1db655fdd1dad0797e46871f3e02ac068fd893
parentda5abcfdae9742cee49a4a4d5df729c246f68dc3
selftests/bpf: Pass sanitizer flags to linker through LDFLAGS

When adding -fsanitize=address to SAN_CFLAGS, it has to be passed both
to compiler through CFLAGS as well as linker through LDFLAGS. Add
SAN_CFLAGS into LDFLAGS to allow building selftests with ASAN.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Hengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/bpf/20211107165521.9240-2-andrii@kernel.org
tools/testing/selftests/bpf/Makefile