diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-10 01:11:57 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2023-02-10 15:21:27 -0800 |
| commit | 0589d16475ae69da30dde8d0064b3b834ee25310 (patch) | |
| tree | f68e48b504c22f84937bf06351fe3f03cf953a0d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | tools: runqslower: Add EXTRA_CFLAGS and EXTRA_LDFLAGS support (diff) | |
| download | linux-0589d16475ae69da30dde8d0064b3b834ee25310.tar.gz linux-0589d16475ae69da30dde8d0064b3b834ee25310.zip | |
selftests/bpf: Split SAN_CFLAGS and SAN_LDFLAGS
Memory Sanitizer requires passing different options to CFLAGS and
LDFLAGS: besides the mandatory -fsanitize=memory, one needs to pass
header and library paths, and passing -L to a compilation step
triggers -Wunused-command-line-argument. So introduce a separate
variable for linker flags. Use $(SAN_CFLAGS) as a default in order to
avoid complicating the ASan usage.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230210001210.395194-4-iii@linux.ibm.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
