]> git.baikalelectronics.ru Git - kernel.git/commit
selftest/bpf: Use -m{little, big}-endian for clang
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 28 Oct 2019 10:20:49 +0000 (11:20 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Oct 2019 15:15:51 +0000 (16:15 +0100)
commit881d7e65b537e893645cd85442151c5ead6dc12f
treeb0e3c79894452536809c7aec09276c03f61a4d2e
parent455b3a81c9b4f188560481f5917ae6d06bfa7092
selftest/bpf: Use -m{little, big}-endian for clang

When cross-compiling tests from x86 to s390, the resulting BPF objects
fail to load due to endianness mismatch.

Fix by using BPF-GCC endianness check for clang as well.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191028102049.7489-1-iii@linux.ibm.com
tools/testing/selftests/bpf/Makefile